Question : find files which filesize > 200KB

Hi,

I would like to find following in Solaris:
[1] count number of files(bad long files) if file size > 200KB
[2] send mail if above count is more then 50.


Answer : find files which filesize > 200KB

test `find . -type f -size +400 | wc -l` -gt 50 &&  sendmail -t <To: user
Subject: count is more then 50

END
Random Solutions  
 
programming4us programming4us