Shell遍历文件的每一行[转载]
1 #!/bin/sh 2 3 while read line 4 do 5 echo $line 6 done < /home/jms/lab/input.txt
A dwarf on a giant's shoulder sees the farther of the two.
站在巨人肩上的矮子看得比巨人远。
--A dwarf on a giant's shoulders