[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Enhancement to SORT command.
From: |
✓ Paul Courbis de Bridiers de Villemor |
Subject: |
Re: Enhancement to SORT command. |
Date: |
Mon, 20 Sep 2021 19:38:30 +0200 |
Hello
Sort -h does the job, doesn’t it ?
For example :
Du -csh * | sort -h
Regards
Le lun. 20 sept. 2021 à 19:35, Godfather <mm1miq.d@gmail.com> a écrit :
> Hello,
>
> The SORT command in GNU coreutils does not have a sort by DATA SIZE
> parameter.
>
> for example, to sort:-
> -----------
> 100.0 Kb
> 303 Mb
> 4.01 Gb
> 20 Mb
> -----------
> sorts output will be:-
> -----------
> 303 Mb
> 100.0 Kb
> 20 Mb
> 4.01 Gb
> -----------
> It would be nice if thier was a parameter that sorted by size so the output
> would be 100.0 Kb, 20 Mb, 303 Mb, 4.01 Gb
>
> Would be great if such a parameter was added.
>
> Regards.
>
--
--
Paul Courbis de Bridiers de Villemor