If you’ve spent any amount of time at a Unix command line you’ve probably used xargs. In case you haven’t, xargs is a command used to execute commands based on arguments from standard input.
Common use cases:
These who use xargs often use it in combination with find in order to do something with the list of files returned by find.
On its' own, find is a very powerful command and it has built in flags such as -exec
and -delete
that you can often use instead of piping to xargs. With it's simplicity, xargs tends to find more usage than find on its' own.