[CLUE-Tech] Args gripe (was mpg123 - recursively play directories?)
David Anselmi
anselmi at americanisp.net
Tue Aug 27 23:32:44 MDT 2002
Dale Hawkins wrote:
>
> My biggest complaint about xargs, is if there are any special
> characters in the input. For example, many of my mp3 files have
> apostrophes and xargs gets confused. The only method I know to deal
> with the problem is to filter all the file names through a nasty sed
> expression to escape all special characters.
>
> Any better or more general solution to this problem?
You can use -0 which changes the input argument separator to a null
(rather than a space or newline). Then other characters are taken
literally (not sure how well that works in practice).
To get a null separated list, you can use the -print0 expression in find.
Dave
More information about the clue-tech
mailing list