if [ $# -ne 1 ] 作用 在shell腳本中經常會使用if [ $# -ne 1 ];then。。。這類腳本 這段命令是用於判斷參數的個數是否為1,不是則進行then的邏輯處理,其中$#表示參數個數,-ne是不 ...