首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

施行shell脚本时报错command not found

2013-06-26 
执行shell脚本时报错command not found我执行shell脚本的时候总是报这个错,不知道该怎么纠正,大家帮个忙吧

执行shell脚本时报错command not found
我执行shell脚本的时候总是报这个错,不知道该怎么纠正,大家帮个忙吧。
下面是脚本代码:
if [[$1 -lt 1 -o -gt 10]]
then echo "error input"
else echo "input is:$1"
fi
报错如下:
施行shell脚本时报错command not found
这个到底是怎么回事?是shell脚本有问题吗? 脚本 shell command
[解决办法]

if [ $1 -lt 1 -o $1 -gt 10 ] ; then
echo "error input"
else
echo "input is:$1"
fi

热点排行