|

楼主 |
发表于 2004-6-2 21:34:44
|
显示全部楼层
#!/bin/bash
a=100
b=200
echo $a $b
if[$a -lt $b]
then
echo $a
fi
exit 0
也不行阿。下面是错误信息
jason@nbfan:~$ bash test1
100 200
test1: line 6: if[100 -lt 200]: command not found
test1: line 7: syntax error near unexpected token `then'
test1: line 7: `then'
jason@nbfan:~$ |
|