方法1:
exec <file
sum=0
while read line;do
cmd
done
方法2:
cat ${FILE_PATH} |while read line
do
cmd
done
方法3:
while read line
do
cmd
done<FILE
本文转自激情燃烧的岁月博客51CTO博客,原文链接http://blog.51cto.com/liuzhengwei521/1783078如需转载请自行联系原作者
weilovepan520