[NTLUG:Discuss] Finding huge files...

Burton M. Strauss III Burton_Strauss at comcast.net
Sun May 9 07:28:46 CDT 2004


Doesn't this work even better?

find . -xdev -size +1024 -print0 | xargs -0 ls -al | sort -n -k 5 -r |
head -10

Gives you the largest files sorted by size...

-----Burton

> -----Original Message-----
> From: discuss-bounces at ntlug.org [mailto:discuss-bounces at ntlug.org]On
> Behalf Of Kevin Brannen
> Sent: Saturday, May 08, 2004 1:52 PM
> To: NTLUG Discussion List
> Subject: Re: [NTLUG:Discuss] Finding huge files...

<snip />

> and in testing it out, I found files with spaces, I like the big files
> at the bottom, I wanted to start at the current dir, and I wanted only
> the 10 biggest, so:
>
>    find . -xdev -size +1024 -print0 | xargs -0 ls -al | sort -k 5
> | tail -10
>
> Is Unix great or what?! :-)
>
> HTH,
> Kevin




More information about the Discuss mailing list