you can also do 

# ls -lS|head -n 10


On Tue, 2002-12-03 at 12:00, Rommell Barcela wrote:
> On Tuesday 03 December 2002 11:00 am, Jun Tanamal wrote:
> > What command line to sort out the first 10 largest file in a directory?
> 
> a couple of minutes after doing "man ls" & "man grep"...
> 
> ls -lS | grep -m 10 [r,-]
> 
> 
> _
> Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
> To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
> 
> Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph
> 
> To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
>[EMAIL PROTECTED]
> 
-- 
Lito A. Lampitoc                :  http://www.codewan.com.ph
Systems/Network Administrator   :  CountryWide Wide Area Network, Inc.

As we enjoy great advantages from inventions of others, we should be
glad of 
an opportunity to serve others by any invention of ours; and this we
should
do freely and generously. - Benjamin Franklin                   

_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to