方法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
时间: 2024-10-07 05:02:30
方法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