case

複数の選択肢がある条件文を作成するための Bash 組み込み構文。 もっと詳しく: https://www.gnu.org/software/bash/manual/bash.html#index-case

case {{$tocount}} in {{words}}) {{wc -w README}}; ;; {{lines}}) {{wc -l README}}; ;; esac

case {{$tocount}} in {{[wW]|words}}) {{wc -w README}}; ;; {{[lL]|lines}}) {{wc -l README}}; ;; *) {{echo "what?"}}; ;; esac