bash case 用法

case “$j” in
“”)
echo “null”
exit 1
;;
a|b|c)
echo “a or b or c”
;;
d|e|f)
echo “d or e or f”
;;
*)
echo “other”
;;
esac

阅读(83 次)

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*