while read line do echo $line done <file.txt 以file.txt作为输入,用read循环读取每一行 转载于:https://www.cnblogs.com/maweitao/p/11132946.html