선 밖에 선 자유인

Bash 라인 단위 파일 읽기 본문

IT/Programming

Bash 라인 단위 파일 읽기

Hotman 2018. 3. 16. 16:03

exec < $1

while read line 

do 

    echo $line 

done


while read line 

do 

    echo $line 

done < $1



- 컬럼 별로 읽을 때 (test.txt)

A B C D E

F G H I J


while read A B C

do 

    echo "${A},${B},${C}"

done < test.txt



Comments