常用的三种方式:
while read line
do
echo $line
done < filename(待读取的文件)
cat filename(待读取的文件) | while read line
do
echo $line
done
for line in `cat filename(待读取的文件)`
do
echo $line
done
常用的三种方式:
while read line
do
echo $line
done < filename(待读取的文件)
cat filename(待读取的文件) | while read line
do
echo $line
done
for line in `cat filename(待读取的文件)`
do
echo $line
done