Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #197339
| From | john doe <johndoe65534@mail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Editing a piped in stream? |
| Date | 2018-07-08 07:40 +0200 |
| Message-ID | <w9aAp-1c5-1@gated-at.bofh.it> (permalink) |
| References | <w8BCG-5u7-11@gated-at.bofh.it> <w8KPD-2CT-1@gated-at.bofh.it> <w8Rep-6f8-1@gated-at.bofh.it> <w91dM-3T1-13@gated-at.bofh.it> <w96Qa-7h0-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 7/8/2018 3:38 AM, John Crawley wrote:
> On 2018-07-08 04:35, David Christensen wrote:
>> On 07/07/18 01:51, John Crawley wrote:
>>> On 2018-07-07 11:02, David Christensen wrote:
>>>> On 07/06/18 09:17, Richard Owlett wrote:
>>>>> While working on a problem {solved by a different approach} I had:
>>>>> ls -l /dev/disk/by-label/ | cut -f 10,12 -d ' ' data.txt
>>>>> I would then manually edit data.txt by replacing the space
>>>>> character between the two fields with a tab.
>>>>> I suspect I should be able to do:
>>>>> ls -l /dev/disk/by-label/ | cut -f 10,12 -d ' ' | *something* >
>>>>> prettydata.txt
>>
>>> Ideal would be a more focussed way of reading out the disk info,
>>> perhaps something with blkid or lsblk?
>>
>> I don't follow. blkid(8) and lsblk(8) would be ideal for what
>> purpose? Using what metric?
>
> I meant that there might be a utility that would output the disk info
> directly, avoiding the need to do any post-processing with cut, sed, awk
> and friends, and suggested blkid and lsblk as possible candidates.
>
> Just a suggestion I threw out for those with the time and motivation to
> plough though the man pages.
>
The issue here is that we don't know what the OP wants (original and
desired output)!!! :)
There is probably a better solution that the one of using multiples pipes.
--
John Doe
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Editing a piped in stream? Richard Owlett <rowlett@cloud85.net> - 2018-07-06 18:20 +0200
Re: Editing a piped in stream? Michael Wagner <wagner_m_bremen@web.de> - 2018-07-06 18:50 +0200
Re: Editing a piped in stream? Richard Owlett <rowlett@cloud85.net> - 2018-07-06 20:30 +0200
Re: Editing a piped in stream? john doe <johndoe65534@mail.com> - 2018-07-06 19:10 +0200
Re: Editing a piped in stream? David Christensen <dpchrist@holgerdanske.com> - 2018-07-07 04:10 +0200
Re: Editing a piped in stream? John Crawley <john@bunsenlabs.org> - 2018-07-07 11:00 +0200
Re: Editing a piped in stream? David Christensen <dpchrist@holgerdanske.com> - 2018-07-07 21:40 +0200
Re: Editing a piped in stream? David Wright <deblis@lionunicorn.co.uk> - 2018-07-08 03:40 +0200
Eureka;/ Re: Editing a piped in stream? Richard Owlett <rowlett@cloud85.net> - 2018-07-08 13:00 +0200
Re: Editing a piped in stream? John Crawley <john@bunsenlabs.org> - 2018-07-08 03:40 +0200
Re: Editing a piped in stream? john doe <johndoe65534@mail.com> - 2018-07-08 07:40 +0200
Re: Editing a piped in stream? Andy Smith <andy@strugglers.net> - 2018-07-08 13:20 +0200
Re: Editing a piped in stream? Richard Owlett <rowlett@cloud85.net> - 2018-07-08 15:20 +0200
Re: Editing a piped in stream? Richard Owlett <rowlett@cloud85.net> - 2018-07-08 16:00 +0200
Re: Editing a piped in stream? John Darrah <xyllyx@gmail.com> - 2018-07-08 18:50 +0200
Re: Editing a piped in stream? mick crane <mick.crane@gmail.com> - 2018-07-10 14:20 +0200
Re: Editing a piped in stream? Greg Wooledge <wooledg@eeg.ccf.org> - 2018-07-10 14:40 +0200
Re: Editing a piped in stream? mick crane <mick.crane@gmail.com> - 2018-07-10 15:00 +0200
Re: Editing a piped in stream? john doe <johndoe65534@mail.com> - 2018-07-10 15:30 +0200
Re: Editing a piped in stream? mick crane <mick.crane@gmail.com> - 2018-07-10 14:50 +0200
Re: Editing a piped in stream? Greg Wooledge <wooledg@eeg.ccf.org> - 2018-07-09 14:50 +0200
Re: Nvidia drivers Matthew Crews <mattcrews@mattcrews.com> - 2018-07-09 15:20 +0200
Re: Nvidia drivers Matthew Crews <mattcrews@mattcrews.com> - 2018-07-09 20:40 +0200
Re: Nvidia drivers Boyan Penkov <boyan.penkov@gmail.com> - 2018-07-09 20:50 +0200
csiph-web