UNIX Shell-scripting: UDV
- by Myx
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?