deleting files of certain types from the command line


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



Copy this code and paste it in your HTML
  1. find samba/ -iname '*.mpg' -o -iname '*.avi' -o -iname '*.mov' -o -iname '*.mpeg' -o -iname '*.wmv' -exec rm -f '{}' \;

URL: http://snipplr.com/view/4363/howto-find-files-on-your-computer-with-find/

Report this snippet


Comments


You need to login to view comments.