Re: list file by size
angus debian <angus.debian@cybermedian.com> writes:
> I would like to list the files by size include all
> sub-directory.
Uhm, it's a quite ugly hack, because I'm not familiar with sed/awk,
but this seems to work:
find . -type f | xargs ls -lk | awk '{ print $5 "\t" $0 }' \
| sort -nr | sed -e 's/^[0-9]*\W*//;' | less
hth,
moritz
--
Moritz Schulte <moritz@chaosdorf.de> http://www.chaosdorf.de/moritz/
Debian/GNU supporter - http://www.debian.org/ http://www.gnu.org/
GPG fingerprint = 3A14 3923 15BE FD57 FC06 B501 0841 2D7B 6F98 4199
Reply to: