文件a1内容如下:
方法1:for循环
方法2:while循环
方法3:管道+while循环
方法4:限定读的行数
shell:逐行读取文件内容
原文:http://www.cnblogs.com/seaBiscuit0922/p/7590642.html