티스토리 뷰

공부

[Linux] foreach file lines

승가비 2020. 8. 5. 02:52
728x90
while read line
do
    echo $line
done < test.txt

https://twpower.github.io/155-use-file-or-command-ouput-in-while-loop

 

[Shell Script] 파일이나 명령어 결과를 한줄씩 while문에서 처리하기

Practice makes perfect!

twpower.github.io

 

728x90
댓글