So, the command you'll want to use is this:
ls -Llat | awk '{ print $9 }' | xargs du -hs
That should give you the desired effect. The -L option is added to
help with symbolic links.
- Lee
http://thnetos.wordpress.com
On Dec 4, 2007 1:20 PM, Joaquin Henriquez
<[EMAIL PROTECTED]> wrote:
> I rephrase mself because I don't even understand myself.
>
> I want a lists of directories to appear in teh output sort by date (from
> older to most recent) and to output the total size of those directories.
> I run
>
> ls -lrt | du -hs *
>
> But the output is sort by name not by date.
>
> BR
>
> Joaquin
>
> ________________________________
>
> De: [EMAIL PROTECTED] en nombre de Joaquin Henriquez
> Enviado el: mar 04/12/2007 21:03
> Para: [email protected]
> Asunto: [Solaris-Users] Sorting and sizing
>
>
>
>
> Hi there,
>
> When I do these command the result is not what I expect which is the
> directories sort by date and then to give me the size the have. The result is
> that the directories are order by alphabetical order (with the size)
>
> ls -lrt | du -hs *
>
> BR
>
> Joaquin
>
> _______________________________________________
> Solaris-Users mailing list
> [email protected]
> http://www.filibeto.org/mailman/listinfo/solaris-users
>
>
>
> _______________________________________________
> Solaris-Users mailing list
> [email protected]
> http://www.filibeto.org/mailman/listinfo/solaris-users
>
_______________________________________________
Solaris-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/solaris-users