Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #204247
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Richard Owlett <rowlett@cloud85.net> |
| Newsgroups | linux.debian.user |
| Subject | Re: Taming the "lsblk" command |
| Date | Wed, 09 Jan 2019 16:40:02 +0100 |
| Message-ID | <xeo7w-3VN-27@gated-at.bofh.it> (permalink) |
| References | <xe6DD-1fQ-13@gated-at.bofh.it> <xeehP-6rN-5@gated-at.bofh.it> <xeh62-8bp-5@gated-at.bofh.it> <xelCG-2i4-15@gated-at.bofh.it> <xemyJ-2RP-7@gated-at.bofh.it> <xemS6-3e7-3@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-user-request@lists.debian.org Wed Jan 9 15:34:02 2019 |
| Old-Return-Path | <rowlett@cloud85.net> |
| X-Amavis-Spam-Status | No, score=-6 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, GMAIL=1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -5.5 |
| User-Agent | Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Exim-ID | 6590bd06-846c-b4ec-5556-76488aaa0356 |
| X-Mailing-List | <debian-user@lists.debian.org> archive/latest/744220 |
| List-ID | <debian-user.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-user/> |
| List-Archive | https://lists.debian.org/msgid-search/6590bd06-846c-b4ec-5556-76488aaa0356@cloud85.net |
| Approved | robomod@news.nic.it |
| Lines | 39 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Wed, 9 Jan 2019 09:33:40 -0600 |
| X-Original-Message-ID | <6590bd06-846c-b4ec-5556-76488aaa0356@cloud85.net> |
| X-Original-References | <52d8e7b5-4034-793d-2fe2-3190720514a5@cloud85.net> <alpine.NEB.2.21.1901090003500.12918@panix1.panix.com> <08c377f1-702c-b920-75fb-cfbf5571037a@walnut.gen.nz> <201901090758.01894.rhkramer@gmail.com> <slrnq3bvd9.30i.curty@einstein.electron.org> <20190109141448.afkielych6yalfvu@wren.corp> |
| Xref | csiph.com linux.debian.user:204247 |
Show key headers only | View raw
On 01/09/2019 08:14 AM, David Wright wrote: > On Wed 09 Jan 2019 at 13:54:45 (+0000), Curt wrote: >> On 2019-01-09, rhkramer@gmail.com <rhkramer@gmail.com> wrote: >>> On Wednesday, January 09, 2019 03:01:42 AM Richard Hector wrote: >>>> On 9/01/19 6:04 PM, Jude DaShiell wrote: >>>>> lsblk -l -o name,label | sort | script >>>> >>>> lsblk -ln -o name,label |sort | <script> >>> >>> I'm not the OP, but I very much like the way you put script in angle brackets >>> to show that is a parameter (mcow) and not a literal value!! >> >> I'll see that affection for mundane angle brackets and raise you the >> annoyance of not having received the vaguest clue as to what might be >> found literally inside them (the pertinent part, at the very least). > > I don't think the OP told us what the script was, 'Cause ain't written yet ;) I needed to know if the data was available in a suitable format. As this should be in a script initialization section, I believe redirection is more appropriate than pipes. One line of my script will be: > lsblk -l -o name,label | sort > /home/richard/mydata.txt > but just that they > want to pipe the output into "a script". Using angle brackets from the > start (or knowing that script itself is a program) would have avoided > the mess in the other subthread. I had no problem interpreting Jude's post. My personal convention would have been to write it as "lsblk -l -o name,label | sort | myscript". BUT. I read Jude's and Reco's posts at midnight. Reco's answer of "lsblk -l -x name -o name,label" was better. I just tried Jude's as I read it after Jude's. I should reply only when really awake ;/
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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