![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell 编程
文章平均质量分 78
hainan16
这个作者很懒,什么都没留下…
展开
-
shell编程 for in 循环
for in 格式for 无$变量 in 字符串do $变量done一简单的字符串 枚举遍历法,利用for in格式对字符串按空格切份的功能SERVICES="80 22 25 110 8000 23原创 2011-08-07 19:59:53 · 121463 阅读 · 2 评论 -
shell编程 case语句
case语句格式# vi test.sh:echo "input : "read numecho "the input data is $num"case $num in1) echo "January";; 双分号结束2)原创 2011-08-07 20:02:30 · 1059 阅读 · 0 评论 -
shell编程 循环结构
=====================================while语句========================================while语句格式while 表达式 do command原创 2011-08-07 20:01:19 · 2445 阅读 · 0 评论 -
shell编程 if语句
if 语句格式if 条件then Commandelse Commandfi 别忘了这个结尾If语句忘了结尾fitest.sh: line 14: syntax e原创 2011-08-07 20:03:37 · 12439 阅读 · 2 评论