Feed on

find and remove files

i know there must be a bazillion ways to find and remove files in unix.  here’s one that works when ‘rm’ chokes on “too many files”:

find ./ -name “my_pattern” -exec rm -rf {} \;

Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

Did I get this wrong? Let me know!

Trackback URI | Comments RSS