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


Groups > linux.debian.user > #159294

Re: Extract substring from cat

From Cindy-Sue Causey <butterflybytes@gmail.com>
Newsgroups linux.debian.user
Subject Re: Extract substring from cat
Date 2015-10-17 03:40 +0200
Message-ID <qkoDv-7lZ-3@gated-at.bofh.it> (permalink)
References <qkcCm-6zl-9@gated-at.bofh.it> <qkcCm-6zl-7@gated-at.bofh.it> <qkmLo-4Eg-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 10/16/15, Jonathan <winelauncher.jonathan@googlemail.com> wrote:
> On Fri, 16 Oct 2015 14:15:46 +0200
> "Alfred Charles Stockton" <alf@devacs.za.net> wrote:
>
>> Now what I would like to do is to only print the substring "Debian
>> GNU/Linux 8 (jessie)" from the 1st line, preferably in bash.
>>
>> Please tell me how I should go about this?
>
> lsb_release -ds
> from lsb-release package.


I've been partially playing along with this thread as it has evolved.
I received 2 slightly different outputs regarding this latest..

$ lsb_release -ds
$ Debian GNU/Linux unstable (sid)

and...

$ cat /etc/*-release
$ PRETTY_NAME="Debian GNU/Linux stretch/sid"

Unstable is certainly Sid's first, middle, and last name, grin.
Stretch nicely defines where Sid is in a release cycle of the
moment..... a nice little time stamp of sorts.... ish. :)

Cindy :)

-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with duct tape *

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


Thread

Extract substring from cat "Alfred Charles Stockton" <alf@devacs.za.net> - 2015-10-16 14:50 +0200
  Re: Extract substring from cat Nemeth Gyorgy <friczy@freemail.hu> - 2015-10-16 15:00 +0200
    Re: Extract substring from cat <tomas@tuxteam.de> - 2015-10-16 15:50 +0200
      Re: Extract substring from cat Kurt Flex <flxkrt@aol.com> - 2015-10-18 22:00 +0200
        Re: Extract substring from cat tomas@tuxteam.de - 2015-10-18 22:10 +0200
  Re: Extract substring from cat Darac Marjal <mailinglist@darac.org.uk> - 2015-10-16 15:10 +0200
  Re: Extract substring from cat Santiago Vila <sanvila@unex.es> - 2015-10-16 15:30 +0200
  Re: Extract substring from cat "John L. Cunningham" <djohngo@gmail.com> - 2015-10-16 15:30 +0200
  Re: Extract substring from cat Jonathan <winelauncher.jonathan@googlemail.com> - 2015-10-17 01:40 +0200
    Re: Extract substring from cat Cindy-Sue Causey <butterflybytes@gmail.com> - 2015-10-17 03:40 +0200

csiph-web