Post

ファイルを一行ずつ処理

read を使用する。

$ cat list.txt
line 1
line 2
line 3
END
$ while read LINE; do echo ${LINE}; done < ./list.txt
line 1
line 2
line 3
END
This post is licensed under CC BY 4.0 by the author.