If you try to pipe the output from one Linux command into another, you may run into errors where the command fails because its argument list is too long. Fortunately, there’s a command on Linux systems that properly formats arguments to commands. It’s called xargs and here’s how to use it.
Source: LXer – How to Use xargs to Process Piped Arguments in Linux