求助shell script
各位大侠,小弟不懂shell script语言,现在着急要用到一个小程序,如下:要求:
常量c=1000; 变量i,每循环一次i++;变量q,q=i*c。
我这么写总是说语法错误:@: Expression Syntax
#!/bin/csh
@ i = $1
@ q = $1
@ c = 1000
while ($i <= $2)
nice +101 ./file.$q < file1 (这是程序体)
@ i =$i + 1
@ q =$ expr [$i \* $c]
end
请大侠帮我看看怎么改啊!谢谢了!
页:
[1]