Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maximum Size of a File 1

Status
Not open for further replies.

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 ..?
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top