Thursday, January 3, 2013

What is the difference between pipe and xargs?

xargs converts the input into command line arguments and is useful when the parameter list is too long for the shell. It splits the parameter list and iterates over the smaller list.

The pipe takes the standard output of the first command and copies it to the standard input. Roughly, pipe is an option to concatenate two/more commands.

No comments :