2009-08-05 処理を途中で終わらせる shell memo #!/bin/sh #標準入力 echo "Please type a command." read command if test "$command" = "quit"; then echo "good bye!" exit 0