It would need some prettying up, but this would get close

for i in *; do echo -n "`du -s $i | awk '{ print $1 }'`     "; file $i; done
| sort -n

On 11/17/06, Jason Runyan <[EMAIL PROTECTED]> wrote:

It would need some prettying up, but this would get close

for i in *; do echo -n "`du -s $i | awk '{ print $1 }'`     "; file $i;
done | sort -n

On 11/17/06, Stewart Stremler <[EMAIL PROTECTED]> wrote:
>
> begin  quoting Karl Cunningham as of Thu, Nov 16, 2006 at 04:41:05PM
> -0800:
> > I'd like to take the output of
> >
> > du --max-depth=0 *
>
> aka "du -s *"
>
> > and have it sorted by the number of bytes and add colors to
> distinguish
> > directories from files.
>
> Colors will be difficult to do well, as you'd want to go through
> termcap. And you'd want to add it after sort, too.
>
> --
> _ |\_
> \|
>
>
> --
> [email protected]
> http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
>



--
JD Runyan




--
JD Runyan

--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to