Jan 21, 2004 #1 we2aresame Technical User Joined Feb 10, 2003 Messages 128 Location CA Can anyone help me to find and sort files by size? thanks.
Jan 21, 2004 #2 bi Technical User Joined Apr 13, 2001 Messages 1,552 Location US du -sk | sort -n gives you file size in KBytes in ascending order (smallest first) in the current directory. Or something like this will find files larger than 20480 bytes. But I would imagine it would take a long time to run: find / -xdev -size +20480 -ls|sort -r +6|head -10 What is it you are trying to do? Upvote 0 Downvote
du -sk | sort -n gives you file size in KBytes in ascending order (smallest first) in the current directory. Or something like this will find files larger than 20480 bytes. But I would imagine it would take a long time to run: find / -xdev -size +20480 -ls|sort -r +6|head -10 What is it you are trying to do?
Jan 21, 2004 Thread starter #3 we2aresame Technical User Joined Feb 10, 2003 Messages 128 Location CA Thank you, on AIX, I did some minor changes: find / -xdev -size +20480c -ls|sort -r +4|head -10 Upvote 0 Downvote