Web lists-archives.com

Re: Taming the "lsblk" command




lsblk -l -o name,label | sort | script
On Tue, 8 Jan 2019, Richard Owlett
wrote:

> Date: Tue, 8 Jan 2019 15:56:39
> From: Richard Owlett <rowlett@xxxxxxxxxxx>
> To: debian-user <debian-user@xxxxxxxxxxxxxxxx>
> Subject: Taming the "lsblk" command
> Resent-Date: Tue,  8 Jan 2019 20:57:05 +0000 (UTC)
> Resent-From: debian-user@xxxxxxxxxxxxxxxx
>
> When I do
>  >lsblk -o name,label
> I get a nice graphical result in _STRICT_  *ALPHA_NUMERIC* order.
>
> However when I do > lsblk -l -o name,label
> I get > sdc14 good-fvwm
>  > sdc15 tst_mysql
>  > sde
>  > sde1  debian-2-go
>  > sr0
>  > sdc16 tst_mariadb
>  > sdc17 dummy
>  > sdc18 target
>
> I wish to feed the output of "lsblk -l -o name,label" to a script which
> *DEPENDS* on input being in strict alpha-numeric order.
>
> How?
> TIA
>
>
>
>
>

--