Juha-Pekka Järvenpää wrote:
> Hi,
>
> Just a feature request for du.
>
> I was just wondering if it would be possible for du to print out file
> sizes with thousands grouped.
>
> Instead of:
>
> 5641356 dump.sql
>
> it could print something like
>
> 5 641 356 dump.sql
>
>
You can't generally sort that output though.
I generally do something like:
du -sb * |
sort -k1,1n |
while read size name; do
printf "%'d\t%s\n" $size $name
done
Pádraig.
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils