UNIX Shell-scripting: UDV

Posted by Myx on Stack Overflow See other posts from Stack Overflow or by Myx
Published on 2010-03-07T22:56:40Z Indexed on 2010/03/07 23:11 UTC
Read the original article Hit count: 922

Filed under:
|

I am writing a simple unix shell script:

#!/bin/bash                                                                  

# abort the script if a command fails
set -e

# abort the script if an unitialized shell variable is used
set -u

i = 0;
while [$i -l 1]
do
  src/meshpro input/martini.off video/noise/image$i.off -noise $i
  src/meshview video/noise/image$i.off -output_image video/noise/image$i.jpg -exit_immediately
  i='expr $i + 0.1'
done

When I try to run the script, I get the following error: line 14: i: command not found. I used a tutorial to apply to my code. Any suggestions on what I'm doing wrong?

© Stack Overflow or respective owner

Related posts about unix

Related posts about shell-scripting