[Centos 7] Shell Script 예제
ShellScript의 구문사용 하기 # if ~ else # vi ./if_test1.sh #!/bin/bash echo -n "Enter ls Command Path: " read path if [ -e $path ]; then echo "ls Command Execution file location: $path" else echo "ls Command Execution file Not Found: $path" fi # chmod +x ./if_test1.sh # ./if_test1.sh Enter ls Command Path: /usr/bin/ls ls Command Execution file location: /usr/bin/ls # ./if_test1.sh Enter ls Command Path..
2022.11.24