Linux脚本简单语法
#!/bin/sh
if[ 1=1 ]; then
echo 1
fi
异常:syntax error near unexpected token 'then'
躺着也中枪?
[解决办法]
if和[之间加个空格。
[解决办法]
if [ 1=1 ]
发布时间: 2012-03-20 14:01:11 作者: rapoo
Linux脚本简单语法
#!/bin/sh
if[ 1=1 ]; then
echo 1
fi
异常:syntax error near unexpected token 'then'
躺着也中枪?
[解决办法]
if和[之间加个空格。
[解决办法]
if [ 1=1 ]