Tuesday, October 21, 2008

How to delete many files ending with an extension?

Some times you cannot rely on ‘rm’ command for deleting huge number of files. Even ‘-f’ switch will fail you. In those situations the following command can be used.

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

No comments: