=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
UNIX GURU UNIVERSE
UNIX HOT TIP
Unix Tip 2354 - June 12, 2005
http://www.ugu.com/sui/ugu/show?tip.today
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
LISTING FILES BY SIZE
If you want to have a listing of the
files sorted by size, you can use the
following command(s), it will list
the files in decrease order. if you
need to do the same thing recursively,
you could use the second one.
ls -l | grep ^- | sort -nr -k 5 | more
ls -lR | grep ^- | sort -nr -k 5 | more
Unix Guru Universe - www.ugu.com - [EMAIL PROTECTED] - Copyright 1994-2001
==========================================================================
The question is what does the hyphen mean in the | grep ^- | part?
--
Jerry Hubbard
[EMAIL PROTECTED]
_______________________________________________
CWE-LUG mailing list
[email protected]
http://www.cwelug.org/
http://www.cwelug.org/archives/
http://www.cwelug.org/mailinglist/