Hi,
which option for ls command , sort the output by size ?Or
How can I sort by size, display of files using ls -l command ?
I want to sort the files in a directory by size.
Many thanks before.
uname -a
AIX 5
$ ls -l | awk '{print $5 " " $9}'|sort -nr
Thank you.
or u can use this:
$ ls -l | grep ^- | sort -nr -k 5
Hi again,
is there any way to find those files which are greater than 10 (or n) Mbyte in a directory ? Many thanks again.
This is a different question and should have a thread of its own, but anyways:
find /dirname -size +10000000c
thank you.