Sponsored Content
Full Discussion: Ls -al / du
Top Forums Shell Programming and Scripting Ls -al / du Post 302927708 by Daniel Gate on Thursday 4th of December 2014 11:05:42 PM
Old 12-05-2014
Thank you!

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
....... 
 
All times are GMT -4. The time now is 01:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy