Tuesday, October 4, 2011

Find files more than 10 MB

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

 Output will be like :


./soa/bam/applications/oracle-bam.ear: 63M
./soa/bam/applications/oracle-bam-was.ear: 63M
./soa/rcu/integration/bam/sql/sqlserver/icommand2.sql: 22M
./soa/rcu/integration/bam/sql/db2/icommand2.sql: 22M
./soa/rcu/integration/bam/sql/oracle/icommand2.sql: 22M
./soa/jdk/jre/lib/fonts/ALBANWTT.ttf: 25M
./soa/jdk/jre/lib/fonts/ALBANWTJ.ttf: 26M
./soa/jdk/jre/lib/fonts/ALBANWTS.ttf: 25M
./soa/jdk/jre/lib/fonts/ALBANWTK.ttf: 26M

No comments:

Post a Comment