1、使用read命令读取一行数据
while read mylinedo echo "LINE:"$mylinedone < datafile.txt
2、使用read命令读取一行数据
cat datafile.txt | while read mylinedo echo "LINE:"$mylinedone
3、#读取一行数据
cat datafile.txt | while myline=$(line)do echo "LINE:"$mylinedone
4、#读取一行数据
while myline=$(line)do echo "LINE:"$mylinedone < datafile.txt
5、#使用read命令读取变量数据
cat datafile.txt | while read paraa parab paracdo echo "PARAA:"$paraa echo "PARAB:"$parab echo "PARAC:"$paracdone
6、#使用read命令读取变量数据
while read paraa parab paracdo echo "PARAA:"$paraa echo "PARAB:"$parab echo "PARAC:"$paracdone < datafile.txt