Linux下PS1、PS2、PS3、PS4使用详解

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 ramesh@dev-db ~> cat ps3.sh select i in mon tue wed exit do 下详解 case $i in mon) echo "Monday";; tue) echo "Tuesday";; wed) echo "Wednesday";; exit) exit;; esac done ramesh@dev-db ~> ./ps3.sh 1) mon 2) tue 3) wed 4) exit #? 1 Monday #? 4