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


Groups > linux.debian.user > #204249

Re: taming lsblk command

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups linux.debian.user
Subject Re: taming lsblk command
Date 2019-01-09 16:40 +0100
Message-ID <xeo7w-3VN-33@gated-at.bofh.it> (permalink)
References <xenEu-3LN-19@gated-at.bofh.it> <xenOa-3Pg-7@gated-at.bofh.it> <xeo7w-3VN-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Jan 09, 2019 at 10:31:46AM -0500, Jude DaShiell wrote:
> jude[~]$ lsblk -n < /usr/bin/sort
> sda      8:0    0 111.8G  0 disk
> ??????sda1   8:1    0 111.8G  0 part /
> ??????sda2   8:2    0  32.5M  0 part [SWAP]
> sdb      8:16   0  55.9G  0 disk
> ??????sdb1   8:17   0    55G  0 part
> sr0     11:0    1  1024M  0 rom

root@wooledg:/home/wooledg# lsblk -n </dev/null
sda      8:0    0 238.5G  0 disk
├─sda1   8:1    0   300M  0 part
├─sda2   8:2    0  46.6G  0 part
├─sda3   8:3    0   2.8G  0 part /boot
├─sda4   8:4    0     1K  0 part
├─sda5   8:5    0   7.5G  0 part [SWAP]
└─sda6   8:6    0 181.4G  0 part /
sr0     11:0    1  1024M  0 rom
root@wooledg:/home/wooledg# lsblk -n </bin/dash
sda      8:0    0 238.5G  0 disk
├─sda1   8:1    0   300M  0 part
├─sda2   8:2    0  46.6G  0 part
├─sda3   8:3    0   2.8G  0 part /boot
├─sda4   8:4    0     1K  0 part
├─sda5   8:5    0   7.5G  0 part [SWAP]
└─sda6   8:6    0 181.4G  0 part /
sr0     11:0    1  1024M  0 rom

Redirecting stdin from /usr/bin/sort only "works" because lsblk doesn't
actually read stdin at all.  It is a preposterously silly thing to do.

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


Thread

re: taming lsblk command Jude DaShiell <jdashiel@panix.com> - 2019-01-09 16:10 +0100
  Re: taming lsblk command Jochen Spieker <ml@well-adjusted.de> - 2019-01-09 16:20 +0100
    Re: taming lsblk command Jude DaShiell <jdashiel@panix.com> - 2019-01-09 16:30 +0100
    Re: taming lsblk command Jude DaShiell <jdashiel@panix.com> - 2019-01-09 16:40 +0100
      Re: taming lsblk command Greg Wooledge <wooledg@eeg.ccf.org> - 2019-01-09 16:40 +0100
      Re: taming lsblk command <tomas@tuxteam.de> - 2019-01-09 16:50 +0100

csiph-web