Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #159260
| From | Nemeth Gyorgy <friczy@freemail.hu> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Extract substring from cat |
| Date | 2015-10-16 15:00 +0200 |
| Message-ID | <qkcM2-6LS-5@gated-at.bofh.it> (permalink) |
| References | <qkcCm-6zl-9@gated-at.bofh.it> <qkcCm-6zl-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
2015-10-16 14:15 keltezéssel, Alfred Charles Stockton írta: > > If I issue the command cat /etc/*-release on my Debian system I get:- > > PRETTY_NAME="Debian GNU/Linux 8 (jessie)" > NAME="Debian GNU/Linux" > VERSION_ID="8" > VERSION="8 (jessie)" > ID=debian > HOME_URL="http://www.debian.org/" > SUPPORT_URL="http://www.debian.org/support/" > BUG_REPORT_URL="https://bugs.debian.org/" > > 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? > > -- > Regards, > Alf Stockton > > > cat /etc/*-release | grep ^PRETTY_NAME | sed 's/^.*=//' -- --- Friczy --- 'Death is not a bug, it's a feature'
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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