shell循环语句
来源:互联网 发布:c语言字符串类型定义 编辑:程序博客网 时间:2024/06/07 05:26
逐行读文本
i=1while read a; doif [ $a = '1' ]; thenecho "line $i equals 1 : $a"elseecho "line $i doesn't equals 1 : $a"fii=$(($i+1))done <a.txt
文本内容
1bcd1efgh1d
line=1cat test.txt | while read a b c d e;doecho "line $line: a:$a, b:$b, c:$c, d:$d, e:$e"line=$(($line+1))done
- shell循环语句
- shell for循环语句
- shell循环语句
- shell 循环语句
- Shell循环语句
- shell--循环语句
- shell 循环语句
- shell中的循环语句
- shell脚本-循环语句
- shell循环语句
- shell编程之循环语句
- Shell中的循环语句实例
- Shell 循环语句用法小结
- shell编程-循环语句
- linux shell script 循环语句
- linux shell for 循环语句
- 【shell】结构控制-循环语句
- shell之循环语句结构
- A script to restart Weblogic servers
- 优雅的在django框架里使用mongodb
- 如何让UIScrollView里面的UIImageView响应touch事件
- C 专家编程
- 提升Web应用程序性能的最佳实践
- shell循环语句
- 初学xml(2)
- 视频聊天网站的研究、发展以及趋势
- 设计模式-策略模式
- 网页游戏的多开 COOKIE限制
- vim中添加块注释(列模式)的方法–找的好辛苦
- hadoop集群环境部署之rsyncd
- Servlet的生命周期和变量范围
- 转载 android 利用ksoap2方式连接webservice