Linu Shell 编程基础
文章平均质量分 62
learn123_net
http://learn123.net There are lots of products in the market that make you dazzled and you dont know how to make a choice. In here we introduce the latest fashion and popular treands. Therefore you learn it first,and then buy the goods that you bes
展开
-
Linu Shell 编程基础--一个简单的Shell脚本
无论学C/C++,java,C#.......都是从一个简单的Hello程序开始。按照国际惯例,本系列文章也从Hello脚本开 始。 百度百科解释: Shell Script,Shell脚本与Windows/Dos下的批处理相似,也就是用各类命令预先放入到一个文件中,方便一次性执行的一个程序文件,主要是方便管理员进行设置或者管理用的。原创 2013-07-07 23:51:06 · 779 阅读 · 0 评论 -
Linu Shell 编程基础--变量,简单的输出,echo,printf
1.命名规则 以字母或下划线开头,后面可以接任意长的字母,数字后下划线。 2.赋值 格式: variable=value #当所赋的值含空格或将几个变量连接起来时需加双引号 eg: fish@piniheaven:~$ var=helo; fish@piniheaven:~$ var1=how; fish@pinih原创 2013-07-08 22:31:33 · 2455 阅读 · 0 评论 -
Linu Shell 编程基础--基本IO重定向和管道
1.基本的I/O重新定向 *默认的标准输入,标准输出,标准错误都是终端 eg: guojin@piniheaven:~$ cat #未指定任何参数,读取标准输入,写入标准输出 hello hello how are you how are you ^C *以 eg: prog原创 2013-07-09 20:48:04 · 1188 阅读 · 0 评论