Jan 6, 2005 #1 yerra IS-IT--Management Jan 6, 2005 11 FR Supposing I have a directory with 100 files and I need to find out the Top 5 Files sorted by Size. Can Someone help me in this ..?
Supposing I have a directory with 100 files and I need to find out the Top 5 Files sorted by Size. Can Someone help me in this ..?
Jan 6, 2005 1 #2 olded Programmer Oct 27, 1998 1,065 US Hi: This works provided your files don't have spaces: find . -follow -mount -type f -print | xargs ls -l |\ sort -r -n -k 5,5 | head -5 Upvote 0 Downvote
Hi: This works provided your files don't have spaces: find . -follow -mount -type f -print | xargs ls -l |\ sort -r -n -k 5,5 | head -5