Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #204225

Re: Taming the "lsblk" command

From Richard Owlett <rowlett@cloud85.net>
Newsgroups linux.debian.user
Subject Re: Taming the "lsblk" command
Date 2019-01-09 07:30 +0100
Message-ID <xefxg-7aE-3@gated-at.bofh.it> (permalink)
References <xe6DD-1fQ-13@gated-at.bofh.it> <xeehP-6rN-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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
>>
>>
>>
>>
>>
> 

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Taming the "lsblk" command Richard Owlett <rowlett@cloud85.net> - 2019-01-08 22:00 +0100
  Re: Taming the "lsblk" command Reco <recoverym4n@enotuniq.net> - 2019-01-08 22:20 +0100
  Re: Taming the "lsblk" command Jude DaShiell <jdashiel@panix.com> - 2019-01-09 06:10 +0100
    Re: Taming the "lsblk" command Richard Owlett <rowlett@cloud85.net> - 2019-01-09 07:30 +0100
    Re: Taming the "lsblk" command Felix Miata <mrmazda@earthlink.net> - 2019-01-09 07:50 +0100
      Re: Taming the "lsblk" command Bob McGowan <ramjr0915@gmail.com> - 2019-01-09 08:00 +0100
      Re: Taming the "lsblk" command Jude DaShiell <jdashiel@panix.com> - 2019-01-09 12:50 +0100
        Re: Taming the "lsblk" command Felix Miata <mrmazda@earthlink.net> - 2019-01-09 14:00 +0100
          Re: Taming the "lsblk" command David Wright <deblis@lionunicorn.co.uk> - 2019-01-09 15:30 +0100
    Re: Taming the "lsblk" command Richard Hector <richard@walnut.gen.nz> - 2019-01-09 09:10 +0100
      Re: Taming the "lsblk" command rhkramer@gmail.com - 2019-01-09 14:00 +0100
        Re: Taming the "lsblk" command Curt <curty@free.fr> - 2019-01-09 15:00 +0100
          Re: Taming the "lsblk" command David Wright <deblis@lionunicorn.co.uk> - 2019-01-09 15:20 +0100
            Re: Taming the "lsblk" command Richard Owlett <rowlett@cloud85.net> - 2019-01-09 16:40 +0100
              Re: Taming the "lsblk" command Curt <curty@free.fr> - 2019-01-09 18:00 +0100
            Re: Taming the "lsblk" command mick crane <mick.crane@gmail.com> - 2019-01-09 17:20 +0100
              Re: Taming the "lsblk" command David Wright <deblis@lionunicorn.co.uk> - 2019-01-09 20:10 +0100
                Re: Taming the "lsblk" command Michael Stone <mstone@debian.org> - 2019-01-09 22:40 +0100
                Re: Taming the "lsblk" command David Wright <deblis@lionunicorn.co.uk> - 2019-01-10 02:00 +0100
                Re: Taming the "lsblk" command Michael Stone <mstone@debian.org> - 2019-01-10 13:50 +0100

csiph-web