Web lists-archives.com

Taming the "lsblk" command




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