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

posted on 2021-03-10 14:31  liujx2019  阅读(192)  评论(0编辑  收藏  举报

导航