Remove files by extension


/ Published in: Bash
Save to your folder(s)

browse to directory and enter


Copy this code and paste it in your HTML
  1. find * -name '*.ext' -exec rm '{}' +
  2. # where .ext is the extension you are wishing to delete (eg .jpg).

URL: http://www.go2linux.org/uses-command-find

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.