Bash控制语句总结 2013-03-02 Linux/Network if 1234567if [ test ]; then xxxxelif [ test ]; then xxxxelse xxxxfi for 123for it in list; do xxxx $itdone while 123while [ test ]; do xxxxdone case 12345678case $var in "a") xxxx;; "b") xxxx;; *) #default xxxx;;esac