POSIX Shell: 스크립트 실행 방법

00_Test.sh

bash
#!/bin/sh
lanuage="Korean"
echo "Hello, $lanuage!"

$ sh 00_Test.sh
Hello, Korean!

sh 명령어 이용

bash
$ sh 00_Test.sh
Hello, Korean!

chmod 명령어 이용

bash
$ chmod +x 00_Test.sh
$ ls -al
-rwxr-xr-x. 1 lycos7560 lycos7560  50 May 21 05:10 00_Test.sh
$ ./00_Test.sh
Hello, Korean!