Would it be possible to convert the size into MB and then sort them by descending order of the file size?
PHP Code:
-rwxrwxrwx 1 root system 5602212 Nov 09 2013 /opt/IBM/ITM/BACKUP/messaging/v710/aix523/mq/hist/CERN.BPCH2AP2.H2PRD/QMEVENTH -rwxrwxrwx 1 root system 803880 Nov 09 2013 /opt/IBM/ITM/BACKUP/messaging/v710/aix523/mq/hist/CERN.BPCH2AP2.H2TRN/QMEVENTH -rwxrwxrwx 1 root system 1001818 Nov 09 2013 /opt/IBM/ITM/BACKUP/messaging/v710/aix523/mq/hist/CERN.BPCH2AP2.H2TRN/QMEVENTH.arc -rwxrwxrwx 1 root system 10483704 Nov 09 2013 /opt/IBM/ITM/BACKUP/messaging/v710/aix523/mq/hist/CERN.BPCH2AP2.H2TRN/QMEVENTH.old -rwxrwxrwx 1 root system 343228 Nov 09 2013 /opt/IBM/ITM/InstallITM/plugin/plugins/plugin_mq-comp_all-1.jar -rwxr-xr-x 1 root system 53254 Nov 29 2008 /opt/IBM/ITM/JRE/aix523/bin/awt_robot -rwxr-xr-x 1 root system 156668 Oct 25 2012 /opt/IBM/ITM/JRE/aix523/bin/classic/libjvm.so -rwxr-xr-x 1 root system 69031 Nov 29 2008 /opt/IBM/ITM/JRE/aix523/bin/headless/libmawt.a -rwxr-xr-x 1 root system 285592 Oct 25 2012 /opt/IBM/ITM/JRE/aix523/bin/ikeycmd -rwxr-xr-x 1 root system 285592 Oct 25 2012 /opt/IBM/ITM/JRE/aix523/bin/ikeyman -rwxr-xr-x 1 root system 181827 Nov 29 2008 /opt/IBM/ITM/JRE/aix523/bin/j9vm/libjvm.a -rwxr-xr-x 1 root system 156668 Oct 25 2012 /opt/IBM/ITM/JRE/aix523/bin/j9vm/libjvm.so -rwxr-xr-x 1 root system 295050 Oct 25 2012 /opt/IBM/ITM/JRE/aix523/bin/java -rwxr-xr-x 1 root system 56056 Nov 29 2008 /opt/IBM/ITM/JRE/aix523/bin/java.properties -rwxr-xr-x 1 root system 57566 Nov 29 2008 /opt/IBM/ITM/JRE/aix523/bin/java_ca.properties -rwxr-xr-x 1 root system 58936 Nov 29 2008 /opt/IBM/ITM/JRE/aix523/bin/java_cs.properties -rwxr-xr-x 1 root system 57807 Nov 29 2008 /opt/IBM/ITM/JRE/aix523/bin/java_de.properties .......
Daniel,
is it the output of the find command? I ask this because the biggest file is ~10MB.
You mentioned UNIX 6.1, did you mean AIX 6.1? If so, then try:
Quote:
Would it be possible to convert the size into MB and then sort them by descending order of the file size?
Yes, the above find command should print files greater than 100000000 bytes (~100MB). Then extend the find command like so
Sample output (before sort & awk):
Sample output (after sort & awk):
Hope this helps.
This User Gave Thanks to junior-helper For This Post: