方法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
本文出自 “激情燃烧的岁月” 博客,请务必保留此出处http://liuzhengwei521.blog.51cto.com/4855442/1783078
原文:http://liuzhengwei521.blog.51cto.com/4855442/1783078