[Gllug] batch convert

Stig Brautaset gllug at brautaset.org
Tue Jan 28 21:29:29 UTC 2003


On Jan 29 2003, Jonathan wrote:
> > or if you have a file containing a list of files
> >
> > files='cat file_containing_files'
> >
> > for file in $files
> > do
> > resample_mp3_application $files
> > done
> >
> >
> > Hope that helps
> >
> > David
> 
> I have tried this in the past, and it is fine if your filenames do not contain 
> spaces. If you're a fickle sort like me, and some of your 10000 odd songs 
> have spaces in the filename, how can one get the above scripts to work?

It is easiest to be sure by using find, thus:

	find ~/music -name "*.mp3" -exec resample_mp3_application "{}" ";"


Stig
-- 
brautaset.org

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list