1、while循环
function while_read_LINE(){
while read LINE
do
echo $LINE
done < $FILENAME
}
1.
2.
3.
4.
5.
6.
2、重定向法;管道法
function While_read_LINE(){
cat $FILENAME | while read LINE
do
echo FILENAME
While read LINE
Do
echo $LINE
done
exec 0<&<3
}