[Gllug] batch convert

Doug Winter doug at pigeonhold.com
Wed Jan 29 11:59:27 UTC 2003


On Wed 29 Jan Jonathan Harker wrote:
> 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?

$ find foo -print0 | xargs -0 command

this will put the list of files found in foo, and place them as
arguments to command, using an ascii \0 instead of whitespace as a
delimiter.

this will only work for commands that take multiple files on their
command line however.

doug.

-- 
http://www.ubergeek.tv/switchlinux/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20030129/384990b5/attachment.pgp>


More information about the GLLUG mailing list