http://www.unix.com/shell-programming-scripting/ http://stackoverflow.com/questions/408975/compare-integer-in-bash-unary-operator-expected http://stackoverflow.com/questions/10586213/encounter-unary-operator-expected-in-bash-script 转载于:https://blog.51cto.com/fuwenchao/1349514