The xargs command builds command lines from standard input.
xargs [options] [command [initial arguments]]
With no arguments, xargs will take strings from standard input, strip off the newlines, and echo them to standard output. However, if you specify a command, xargs will use the data from standard input as the arguments for the command.
Common options:
Examples:
cat filenames | xargs
xargs -t ls -l < filenames
find . \( -name "*.html" -o -name "*.htm" \) | xargs grep -i "<table"
find / -type s | xargs -i echo {} is a socket
find . -name "*.[ch]" | xargs grep -l "[^ -~\t]"
Next topic: sed