Unix find

From Rizzo_Lab
Revision as of 21:38, 28 July 2009 by Sudipto (talk | contribs)
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Find files >2MB in all sub-directories (good for locating space hogs)

find . -type f -size +2048k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'

Find those PBS out and error files and delete them

find -name "*.[oe][0-9]*" | xargs rm

References

http://www.softpanorama.org/Tools/Find/find_mini_tutorial.shtml