[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Taming the "lsblk" command



DUH ;/
I was so focused on lsblk demonstrating with its graphical output that it COULD do what I wanted that I didn't think about an external sort,
Thank you



On 01/08/2019 11:04 PM, Jude DaShiell wrote:
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@cloud85.net>
To: debian-user <debian-user@lists.debian.org>
Subject: Taming the "lsblk" command
Resent-Date: Tue,  8 Jan 2019 20:57:05 +0000 (UTC)
Resent-From: debian-user@lists.debian.org

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









Reply to: