可以到這兩個網址學習
http://www.linuxsong.org/2010/09/shell-condition-test/
http://jianlee.ylinux.org/Computer/Shell/shell_test.html