|
=====================================代码开始
#!/bin/bash
# name:iftest
# this is a comment line, all comment lines start with a #
if ["10" -lt "12"]
then
# yes 10 is lell than 12
echo "Yes,10 is less than 12"
fi
=====================================代码结束
===============执行结果==============
./if: line 5: [10: command not found
=====================================
我不知道第5行怎么错了 请大哥指教
小弟先谢了! |
|