xargs guide
Yedidyah Bar David
linux-il at didi.bardavid.org
Thu Jul 30 12:38:22 IDT 2015
2015-07-30 4:37 GMT+03:00 Steve Litt <slitt at troubleshooters.com>:
> Hi all,
>
> xargs is a gender-changer type program that adapts one program's stdout
> to the next program's command line arguments. It's extremely handy for
> shell scripting, but it can be tricky. I've written a short guide for
> xargs that shows how to get around the usual xargs landmines:
>
> http://www.troubleshooters.com/linux/xargs.htm
>
> Hope you like it.
>
I find missing the mentioning of '-0' (for both xargs and find). I use
them almost always when doing find | xargs, unless I have specific
needs.
Also a comparison with the shell's command substitution (`` or $()( is
probably in place.
Not sure why you need to scare your readers so much...
Nice writeup!
--
Didi
More information about the Linux-il
mailing list