2007-02-01 対話・引数 sh 対話 echo 'Get it? [y/n]' read ANS if [ $ANS = 'y' -o $ANS = 'yes' ]; then echo 'ゴリ.' else echo '...' fi 引数 if [ -z $1 ]; then echo "Usage: $0 xxx" else echo $1 fi exit 0