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


Groups > linux.debian.user > #204249

Re: taming lsblk command

Path csiph.com!news.mixmin.net!news.unit0.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod
From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups linux.debian.user
Subject Re: taming lsblk command
Date Wed, 09 Jan 2019 16:40:02 +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>
X-Mailbox-Line From debian-user-request@lists.debian.org Wed Jan 9 15:36:34 2019
Old-Return-Path <wooledg@eeg.ccf.org>
X-Amavis-Spam-Status No, score=-6.9 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -4.6
Mail-Followup-To debian-user@lists.debian.org
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
Content-Transfer-Encoding 8bit
User-Agent NeoMutt/20170113 (1.7.2)
X-Mailing-List <debian-user@lists.debian.org> archive/latest/744221
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/20190109153621.lmmbpcvckyjkmitk@eeg.ccf.org
Approved robomod@news.nic.it
Lines 30
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Wed, 9 Jan 2019 10:36:22 -0500
X-Original-Message-ID <20190109153621.lmmbpcvckyjkmitk@eeg.ccf.org>
X-Original-References <alpine.NEB.2.21.1901091002160.11594@panix1.panix.com> <20190109151750.ob4qqwhwi6fcsj64@well-adjusted.de> <alpine.NEB.2.21.1901091031290.22181@panix1.panix.com>
Xref csiph.com linux.debian.user:204249

Show key headers only | 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