标题: 求指正一测试代码。请赐教: [打印本页] 作者: bc3 时间: 2014-10-10 15:27 标题: 求指正一测试代码。请赐教: 每次执行都报以下错误。请赐教:
sh test.sh bi 100
test.sh[5]: -: A test command parameter is not valid.
代码如下:
more test.sh
#!/bin/sh
#Usage: test bi 4000
count=0
while [ $count - lt $2 ] # set up a loop control
do # begin the loop