Monday 17 August 2009

find big PDF files

find $EVRHOME/PrintQueue –name “*_PDF” –size +1000k –exec ls –l \; |wc

above will give you a list of PDF files that are > 1 Mb.

If you wanted to delete or mv them, then change ls –l {} \; to rm {} \;

Note also that this is a handy way of getting around the old “The parameter list is too long” – WTF!!!  120K entries causes this…  Come on unix, I think that windoz has got you on that one.

No seriously, use of the find command gets around that little nugget easily

No comments: