xargs - command-line arguments

xargs is a nice utility that works in conjunction with pipes to construct argument lists and pass the same to other utilities.

Here’s how I’d search and remove all HTML files:

find . -name "*.html" -print | xargs rm -f  

Share this post