Problem with for loop in bash
I have written this:
[code]
#!/bin/bash
uvccapture -m
for x in 1 2 3 4 5
uvccapture -m
sleep 5
done
[\code]
the uvccapture -m on line 2 runs but inside the loop it fails with the following error:
line 4: syntax error near unexpected token `uvccapture'
line 4: `uvccapture -m'
I cannot figure out why this happens. Any ideas please?
|