When to use xargs when piping?
xargs can be used when you need to take the output from one command and use it as an argument to another. In your first example, grep takes the data from standard input, rather than as an argument. So, xargs is not needed. xargs takes data from standard input and executes a command. By default, … Read more