Shell遍历文件的每一行[转载]

1 #!/bin/sh
2 
3 while read line
4 do
5         echo $line
6 done < /home/jms/lab/input.txt
原文地址:https://www.cnblogs.com/wxb0328/p/4276742.html