Bash recursing mp3.2.ogg conversion

Dave Mitchell davem at iabyn.com
Fri Sep 2 21:48:55 UTC 2005


On Fri, Sep 02, 2005 at 04:29:34PM -0400, Rodolfo Alcázar wrote:
> On Fri, 2005-09-02 at 15:23 -0500, Bill Gradwohl wrote:
> > On Fri, 2005-09-02 at 15:55 -0400, Rodolfo Alcázar wrote:
> > > for f in $(find . -name "*mp3"); do command-mp3-2-ogg $f; done
> > Put double quotes around the $f as - "$f" - to force file names that
> > include spaces to be treated properly.
> 
> NOP. See what hapens with an echo, so you can see the output.
> 
> $ for f in $(find . -name "*mp3"); do echo command-mp3-2-ogg "$f"; done
> 
> command-mp3-2-ogg ./Sting/Englishman
> command-mp3-2-ogg In
> command-mp3-2-ogg New
> command-mp3-2-ogg York.mp3
> command-mp3-2-ogg ./Sting/The
> command-mp3-2-ogg Hounds
> command-mp3-2-ogg Of
> command-mp3-2-ogg Winter.mp3
> 
> Any other suggestion?

find . -name '*.mp3' | xargs -i= echo command-mp3-2-ogg =


-- 
Monto Blanco... scorchio!




More information about the users mailing list