■case文 case文は、いくつか条件を並べ、合致する条件に対して処理を行います。 case string in pattern1) command-list1 ;; pattern2) command-list2 ;; pattern3) command-list3 ;; ...... esac example ---------- STRING=abc case "${STRINMG}" in ABC) ehco "STRING is ABC." ;; abc) ehco "STRING is abc." ;; xyz) ehco "STRING is xyz." ;; esac