Question: what is difference between xargs and pipe?
Answer: When you use piping without xargs , the actual data is fed into the next command. On the other hand, when using piping with xargs , the actual data is viewed as a parameter to the next command. To give a concrete example, say you have a folder with a.