[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Help with files and spaces with shell script



On 9/16/07, Paul Ward <pnward 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]