case $1 in 1|one|first)echo redhat;; 2)echo yellow;; 3)echo green;; *)echo blue;; esac
if与case
原文:http://blog.51cto.com/13560258/2065298