Deleting all files of a certain extension on Linux

Published On: 2012-11-28

Category: Jargon Jabberwocky

The following code will delete all files with a particular extension in Linux. Tested in Ubuntu.

find . -name '*.orig' | xargs rm