in reply to Re^3: UNIX command - remove 0 byte file
in thread UNIX command - remove 0 byte file
No, it doesn't. xargs is smart enough that it knows the system limits, and splits of the task into several processes if needed. That's the beauty of xargs.
Split up into 42 calls to /bin/echo (the default for xargs). Note also the use of -print0 and -0, that eliminates problems with filenames containing whitespace.$ find /opt/perl -print0 2> /dev/null | xargs -0 | wc -l 42 $
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: UNIX command - remove 0 byte file
by thor (Priest) on Sep 23, 2005 at 13:28 UTC | |
by Anonymous Monk on Sep 23, 2005 at 13:46 UTC | |
by thor (Priest) on Sep 23, 2005 at 14:40 UTC | |
by Anonymous Monk on Sep 23, 2005 at 15:31 UTC | |
by thor (Priest) on Sep 23, 2005 at 15:55 UTC | |
Re^5: UNIX command - remove 0 byte file
by Moron (Curate) on Sep 23, 2005 at 13:59 UTC | |
by Anonymous Monk on Sep 23, 2005 at 14:15 UTC | |
by Moron (Curate) on Sep 23, 2005 at 15:05 UTC | |
by Anonymous Monk on Sep 23, 2005 at 15:27 UTC | |
Re^5: UNIX command - remove 0 byte file
by Moron (Curate) on Sep 23, 2005 at 13:06 UTC |