可以到这两个网址学习
http://www.linuxsong.org/2010/09/shell-condition-test/
http://jianlee.ylinux.org/Computer/Shell/shell_test.html