Page Details:
Things you (probably) didn't know about xargs
http://offbytwo.com/2011/06/26/things-you-didnt-know-about-xargs.htmlIn the examples above xargs reads all non-white-space elements from standard input and concatenates them into the given command line before executing it. This alone is very useful in many circumstances. Sometimes however you might want to insert the arguments into the middle of a command. The -J flag to xargs takes a string that will be replaced with the supplied input before the command is executed. A common choice is %.
Tags: xargs, linux, unix, howto, commandline, reference, shell, bash, programming, tips Saved by: admin