■
#!/bin/bash # see http://d.hatena.ne.jp/ux00ff/20110718/1310992503 echo "welcome this is modeverv menu." # メニュー表示時の文言。 PS3="select > " # メニュー処理本体 select item in "anisoku" "FetchAnisokuR" "nicoPost" "atttack500" "quit" do if [ "${REPLY}" = "q" ]; then echo "bybye." exit 0 fi if [ -z "$item" ] ; then continue fi case "$item" in quit ) echo "byebye." break ;; * ) echo "you select $item ($REPLY)" eval $item exit 0 esac done