Sort Files in SAP Directory (OS Level, UNIX)

By | 08/02/2014

Below are two commands to Sort Files in SAP Directory (OS Level, UNIX):

du -xak . | sort -n | tail -100

it finds me the biggest 100 files or directories on the file system I’m in.
If you want to see which sub-directory of your home directory is the largest, go to your home directory and enter,

 du -sk *

The sorting process is not stable, i.e. if no sort is performed for a predefined sequence of fields, the sequence is not retained.
To delete all duplicate entries from a sorted internal table, you can specify DELETE ADJACENT DUPLICATES FROM itab after SORT

Click on the following link to Learn more about HANA 




Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.