Bash 脚本 逐行处理文本文件的内容

 

while read -r line; do
       echo "$line"
    done < /path/to/file.txt
  https://unix.stackexchange.com/questions/58040/what-is-the-fastest-way-to-process-line-by-line-in-bash answered Dec 9 '12 at 22:19

Gilles Quenot

上一篇:作业2


下一篇:Linux下Shell的for循环语句