Re: annoying BASH does not interpret quotation marks right?

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

 



On 07May2006 16:35, Filippos Klironomos <presariod@xxxxxxxxx> wrote:
| 
| On 5/7/06, Dave Mitchell <davem@xxxxxxxxx <"mailto:davem@xxxxxxxxx";> > wrote:
| 
|     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
| 
| Same problem!
| That's why I added the quotes to begin with but somehow BASH keeps ignoring
| them :-(

Then it sounds to me like ffmpeg is stuffing things up.
The for loop quoted above is perfectly correct, suggesting that ffmpeg
is mangling the string internally somehow.
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

Of coarse (sic!) it possible to teleport a body so  that  the  "soul"  gets
left behind.  They are called "honkies", man.
        - Dr Savory, sav@xxxxxxxxxxxxxxxxxxxxxx, in sci.physics

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux