in reply to Re: Re: finding top 10 largest files
in thread finding top 10 largest files
In DOS, or ... (big pause)...my @files = (reverse sort `dir /A-D /S`)[0..9];
That recursively lists all files from the current working directory on, sorted by largest file first. I imagine there's a combination of opts to ls that will do the same thing, eh? Maybedir /A-D /O-S /S
ls -alSR (which doesn't sort across directories) ls -alR | sort -k 5 (maybe?) (Except those don't suppress the directory names. Hmmm.)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: finding top 10 largest files
by QM (Parson) on Feb 04, 2004 at 00:22 UTC | |
by rje (Deacon) on Feb 04, 2004 at 14:33 UTC |