Shell錯誤[: missing `]'
shell 文件運行時出現錯誤: [: missing `]'
原因可能是
if [ ! -d $date] then mkdir ./$date fi
代碼中的 ] 方括號內部必須要有個空格,if [ ! -d $date] 改成 if [ ! -d $date ] 即可
最後更新:2017-04-03 12:54:57
上一篇:
MySQL的保留字查詢
下一篇:
jQuery獲取當前對象標簽名稱
我心目中的鄧麗君
Maven學習二之settings.xml修改
C++對象模型(一):The Semantics of Constructors The Default Constructor (默認構造函數什麼時候會被創建出來)
C# 判斷字符串是否可以轉化為數字
JVM實用參數(七)CMS收集器
預定義宏"__cplusplus"
springboot(十三):springboot小技巧
服務治理深入淺出(1)- 遠程方法調用的實現
linux中的"瑞士軍刀"
What is the purpose of @SmallTest, @MediumTest, and @LargeTest annotations in Android?