Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Using find with xargs caveat' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Using find with xargs caveat
Authored by: sophistry on Jan 30, '03 11:58:18AM

From the find man pages:

<snip>
-X The -X option is a modification to permit find to be safely used
in conjunction with xargs(1). If a file name contains any of the
delimiting characters used by xargs(1), a diagnostic message is
displayed on standard error, and the file is skipped. The delim-
iting characters include single (`` ' '') and double (`` " '')
quotes, backslash (``\''), space, tab and newline characters.
<snip>



[ Reply to This | # ]
Using find with xargs caveat
Authored by: merlyn on Jan 30, '03 01:20:00PM
Right, but see my other answer in this thread. You want:
find .... -print0 | xargs -0 ....
Not -X.

[ Reply to This | # ]