Advertisement
Russell

Find & Delete Files of Specific Extension

Sep 28th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.13 KB | None | 0 0
  1. First, check which files are to deleted:
  2. find . -name "*.ext" -type f
  3.  
  4. When sure, delete them:
  5. find . -name "*.ext" -type f -delete
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement