권남의 Github 권남의 위키 까먹지말자! 블로그 권남의 Twitter URLEncode/HTMLEscape Java Properties
문서의 이전 판입니다!
바로 직전 프로그램의 Exit code를 판단하여 분기하기
Unix / Linux Bourne / Bash Shell Scripting Tutorial 참조.
# 프로그램 실행. if [ "$?" -ne "0" ]; then echo "Sorry, cannot find user ${1} in /etc/passwd" exit 1 fi