Re: annoying BASH does not interpret quotation marks right?

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

 



On Sun, May 07, 2006 at 04:09:41PM -0700, Filippos Klironomos wrote:
> Hello list,
> 
> I'm trying to parse a list of videos I have to convert them to a different
> format. The video names
> have spaces in them so I do something like:
> 
> for file in *.flv ; do ffmpeg -i \"${file}\" \"${file}.avi\" ; done
> 
> but the quotmarks do not work and ffmpeg is not fed the whole video name but
> only the
> part up to the first space so it fails.

Don't escape the quotes. ie you just need

    for file in *.flv ; do ffmpeg -i "$file" "$file.avi" ; done

-- 
My get-up-and-go just got up and went.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux