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?