Sunday, January 06, 2013

Delete all files with same extension in Linux command

    find . -name '*.yourext' -print0 | xargs -0 rm

Replace yourext with extension you want.
Or change *.yourext to pattern that you want.

No comments: