Help with files and spaces with shell script

Paul Smith phhs80 at gmail.com
Sun Sep 16 19:27:02 UTC 2007


On 9/16/07, Paul Ward <pnward at googlemail.com> wrote:
> > Enclose the names of the files with quotes. That has worked fine for me.
>
> This does not work with loops unfortunately

This loop, for instance, works here:

for i in *.mp3; do lame --decode "$i" "`basename "$i" .mp3`".wav; done

(It converts all mp3 files in a directory to wav.)

Paul




More information about the fedora-list mailing list