循环 for 读取文件

cat filename(待读取的文件) | while read line
do
  echo $line
done

 

 

原文地址:https://www.cnblogs.com/jycjy/p/12050142.html