Hello list,<br><br>I'm trying to parse a list of videos I have to convert them to a different format. The video names<br>have spaces in them so I do something like:<br><br>for file in *.flv ; do ffmpeg -i \"${file}\" \"${file}.avi\" ; done
<br><br>but the quotmarks do not work and ffmpeg is not fed the whole video name but only the <br>part up to the first space so it fails. On the contrary if I just echo the whole command like:<br><br>for file in *.flv ; do echo ffmpeg -i \"${file}\" \"${file}.avi\" ; done
<br><br>I get exactly what I expect which is the ffmpeg command with the full file names enclosed in<br>quotemarks. if I just highlight that output and paste it back on the command prompt it runs like<br>a charm.<br><br>So what am I missing? Why echoing the command works but running it doesn't?
<br><br>I tried to escape some more (in case the escape characters needed to be escaped to no avail).<br><br>Help!<br>Filippos<br><br>