"For loop" error in terminal with avconv
Posted: Mon Sep 04, 2017 2:48 pm
Hi to all.
I want to convert many files their name beggin with 04 using avconv, but I am getting this syntax error:
I searched for examples of the "for loop" and it doesn't seem to be wrong. So no idea.
Thanks
I want to convert many files their name beggin with 04 using avconv, but I am getting this syntax error:
The script line is this :bash: syntax error near unexpected argument 'do'
Code: Select all
sudo for i in 04*; do avconv -i "$i" -s:v hd480 -acodec mp3 "$i-480"; done Thanks