能不能用纯 bash 脚本做程序或者软件啊?

sh/bash/dash/ksh/zsh等Shell脚本
回复
头像
Yume
帖子: 1015
注册时间: 2010-05-24 12:16

能不能用纯 bash 脚本做程序或者软件啊?

#1

帖子 Yume » 2010-12-06 23:55

能不能用纯 bash 脚本做程序或者软件啊?
头像
hiphen
帖子: 803
注册时间: 2010-08-27 15:53

Re: bash 求助...

#2

帖子 hiphen » 2010-12-07 1:16

why not?
基础问题,请看入门手册http://people.ubuntu.com/~happyaron/udc-cn/lucid-html/

Acer aspire 4736G / Ubuntu 10.04LTS
Asus eeepc900 / Xandros
Nokia N900 / Maemo 1.2.12
头像
Yume
帖子: 1015
注册时间: 2010-05-24 12:16

Re: bash 求助...

#3

帖子 Yume » 2010-12-07 9:19

I protest...
flac
帖子: 408
注册时间: 2009-05-29 15:21

Re: bash 求助...

#4

帖子 flac » 2010-12-07 9:29

C + bash
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: bash 求助...

#5

帖子 eexpress » 2010-12-07 10:34

any shell
● 鸣学
头像
tenzu
论坛版主
帖子: 36924
注册时间: 2008-11-21 20:26

Re: bash 求助...

#6

帖子 tenzu » 2010-12-07 10:37

你们都是鬼子
aerofox
帖子: 1453
注册时间: 2008-05-24 8:30

Re: bash 求助...

#7

帖子 aerofox » 2010-12-07 12:43

这事情,要看你想完成什么任务,还要看你所谓的“纯”纯到什么地步。bash脚本中使用了sed 算不算纯?使用了awk呢?
头像
hiphen
帖子: 803
注册时间: 2010-08-27 15:53

Re: bash 求助...

#8

帖子 hiphen » 2010-12-07 15:18

why protest? :P
难道lz是学得越多不懂的越多? :D

就bash好了,举一个你肯定懂的,简单的,模拟数据库的例子:
插入数据 echo "text" >> data.txt
查找数据 grep "text" data.txt 以及 wc
删除数据 grep -v "text" > data_tmp && mv data_tmp data.txt
修改数据 删除再插入

shell script的界面,gdialog/dialog可为你分忧

那么,小到一个 “图书管理程序”, 大到 “管家婆财务管理”这样的程序便有了基础;剩下的,只是时间问题
lz,这些脚本,够纯不?哈哈
基础问题,请看入门手册http://people.ubuntu.com/~happyaron/udc-cn/lucid-html/

Acer aspire 4736G / Ubuntu 10.04LTS
Asus eeepc900 / Xandros
Nokia N900 / Maemo 1.2.12
tusooa
帖子: 6548
注册时间: 2008-10-31 22:12
系统: 践兔
联系:

Re: bash 求助...

#9

帖子 tusooa » 2010-12-07 21:44

搜索 bash-libraries

代码: 全选

] ls -ld //
头像
Yume
帖子: 1015
注册时间: 2010-05-24 12:16

Re: 能不能用纯 bash 脚本做程序或者软件啊?

#10

帖子 Yume » 2010-12-13 15:37

谷歌搜索 bash-libraries 第一条就是您的帖子,而且还是本论坛的...

看了也学习了...
头像
jarryson
帖子: 4002
注册时间: 2005-08-14 19:53

Re: 能不能用纯 bash 脚本做程序或者软件啊?

#11

帖子 jarryson » 2010-12-13 16:14

zenity就提供了bash能调用的图形库,不过类似bash的脚本语言很多,效率都比bash高多了。
头像
Yume
帖子: 1015
注册时间: 2010-05-24 12:16

Re: 能不能用纯 bash 脚本做程序或者软件啊?

#12

帖子 Yume » 2010-12-14 0:12

jarryson 写了:zenity就提供了bash能调用的图形库,不过类似bash的脚本语言很多,效率都比bash高多了。
知道了...
回复