사용자로부터 입력 받기 : read read 명령은 쉘 내장 명령 터미널이나 파일로부터 입력을 받아 들임 $ cat –n test_read 1 #!/bin/bash 2 # 3 # read user input 4 # 5 6 read x 7 echo “x : $x” 8 9 read x y 10 echo “x : $x” 11 echo “y : $y” 12 13 read –p “Input : ” 14 echo “input : $REPLY” $ 실행 결과 $ chmod +x test_read $ ./test_read 100 x : 100 100 200 300 x : 100 y : 200 300 Input : 100 200 300 400 input : 100 200 300 400 $ here 문서를 통한 입력 받기..