Skip to content

Instantly share code, notes, and snippets.

@dekokun
Created July 6, 2012 07:25
Show Gist options
  • Save dekokun/3058647 to your computer and use it in GitHub Desktop.
Save dekokun/3058647 to your computer and use it in GitHub Desktop.
引数を見てコマンド発行するスクリプト
case $1 in
hogehoge)
hogehoge
;;
fugafuga)
fugafuga
;;
*)
echo hogehoge fugafuga
exit 1
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment