Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Staff meeting in the conference room in %d minutes.


devel / comp.unix.shell / Re: how to capture only 7 or 8 in /etc/redhat-release

SubjectAuthor
* Re: how to capture only 7 or 8 in /etc/redhat-releaseKeith Thompson
`* Re: how to capture only 7 or 8 in /etc/redhat-releaseRichard Harnden
 +* Re: how to capture only 7 or 8 in /etc/redhat-releaseKeith Thompson
 |`- Re: how to capture only 7 or 8 in /etc/redhat-releaseRichard Harnden
 `* Re: how to capture only 7 or 8 in /etc/redhat-releasePyt T.
  `- Re: how to capture only 7 or 8 in /etc/redhat-releasePyt T.

1
Re: how to capture only 7 or 8 in /etc/redhat-release

<877cshke9b.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6318&group=comp.unix.shell#6318

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell
Subject: Re: how to capture only 7 or 8 in /etc/redhat-release
Date: Mon, 05 Jun 2023 10:30:56 -0700
Organization: None to speak of
Lines: 9
Message-ID: <877cshke9b.fsf@nosuchdomain.example.com>
References: <c617ead2-f74c-442a-a072-2e5d620ad183n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="f8790b9e901dd4e2d6ca565a2740b51b";
logging-data="430349"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Mc3r8A82uE3RZf+ZiNzJD"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:Tn6Z1bf54UOIKzTCw0VS/+aIVWA=
sha1:mcjZi9ZSVt/BaiOjMzJWCqw/zfg=
 by: Keith Thompson - Mon, 5 Jun 2023 17:30 UTC

Neeraj Kumar <neeraj.friendslover@gmail.com> writes:
> I have two version; please help me to get the version in the form of 7 or 8

Please show us the content of /etc/redhat-release.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */

Re: how to capture only 7 or 8 in /etc/redhat-release

<u5n32f$navg$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6325&group=comp.unix.shell#6325

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: richard....@gmail.com (Richard Harnden)
Newsgroups: comp.unix.shell
Subject: Re: how to capture only 7 or 8 in /etc/redhat-release
Date: Tue, 6 Jun 2023 11:50:53 +0100
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <u5n32f$navg$1@dont-email.me>
References: <c617ead2-f74c-442a-a072-2e5d620ad183n@googlegroups.com>
<877cshke9b.fsf@nosuchdomain.example.com>
Reply-To: nospam.harnden@gmail.com
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 6 Jun 2023 10:50:55 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fc8672f9b247f00735373b4ee25caea2";
logging-data="764912"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+sVikRwF/xgGbE8iCWTx1+L3Qn1x3zfLc="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:FdZa8BdzPCIXdA35ZhjGNHnSo/U=
In-Reply-To: <877cshke9b.fsf@nosuchdomain.example.com>
 by: Richard Harnden - Tue, 6 Jun 2023 10:50 UTC

On 05/06/2023 18:30, Keith Thompson wrote:
> Neeraj Kumar <neeraj.friendslover@gmail.com> writes:
>> I have two version; please help me to get the version in the form of 7 or 8
>
> Please show us the content of /etc/redhat-release.
>

This is what I have. They dropped 'Server' for version 8 ...

Red Hat Enterprise Linux Server release 5.6 (Tikanga)
Red Hat Enterprise Linux Server release 5.8 (Tikanga)
Red Hat Enterprise Linux Server release 5.11 (Tikanga)
Red Hat Enterprise Linux Server release 6.4 (Santiago)
Red Hat Enterprise Linux Server release 6.6 (Santiago)
Red Hat Enterprise Linux Server release 6.7 (Santiago)
Red Hat Enterprise Linux Server release 6.8 (Santiago)
Red Hat Enterprise Linux Server release 6.9 (Santiago)
Red Hat Enterprise Linux Server release 6.10 (Santiago)
Red Hat Enterprise Linux Server release 7.4 (Maipo)
Red Hat Enterprise Linux Server release 7.6 (Maipo)
Red Hat Enterprise Linux Server release 7.7 (Maipo)
Red Hat Enterprise Linux Server release 7.9 (Maipo)
Red Hat Enterprise Linux release 8.1 (Ootpa)
Red Hat Enterprise Linux release 8.3 (Ootpa)
Red Hat Enterprise Linux release 8.4 (Ootpa)
Red Hat Enterprise Linux release 8.6 (Ootpa)

Also, CentOs ...

CentOS Linux release 7.9.2009 (Core)
CentOS Stream release 8

/etc/os-release doesn't seem to exist prior to version 7, and CentOs
Stream dropped the decimal-point - but VERSION_ID is the easiest to parse.

Re: how to capture only 7 or 8 in /etc/redhat-release

<87ttvkiglt.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6326&group=comp.unix.shell#6326

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell
Subject: Re: how to capture only 7 or 8 in /etc/redhat-release
Date: Tue, 06 Jun 2023 11:35:26 -0700
Organization: None to speak of
Lines: 31
Message-ID: <87ttvkiglt.fsf@nosuchdomain.example.com>
References: <c617ead2-f74c-442a-a072-2e5d620ad183n@googlegroups.com>
<877cshke9b.fsf@nosuchdomain.example.com>
<u5n32f$navg$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="32dc53666a694109f19cc0ac3d215b2e";
logging-data="873822"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19bCUKdsZCUeuWDjgXFuupY"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:lWxJcd/b4ogzTvqeHCbleuoPqwQ=
sha1:7Mc2c+hdafpPldm77oAHyGVpljI=
 by: Keith Thompson - Tue, 6 Jun 2023 18:35 UTC

Richard Harnden <richard.nospam@gmail.com> writes:
> On 05/06/2023 18:30, Keith Thompson wrote:
>> Neeraj Kumar <neeraj.friendslover@gmail.com> writes:
>>> I have two version; please help me to get the version in the form of 7 or 8
>> Please show us the content of /etc/redhat-release.
>>
>
> This is what I have. They dropped 'Server' for version 8 ...
>
> Red Hat Enterprise Linux Server release 5.6 (Tikanga)
> Red Hat Enterprise Linux Server release 5.8 (Tikanga)
[SNIP]
> Red Hat Enterprise Linux release 8.4 (Ootpa)
> Red Hat Enterprise Linux release 8.6 (Ootpa)
>
> Also, CentOs ...
>
> CentOS Linux release 7.9.2009 (Core)
> CentOS Stream release 8
>
> /etc/os-release doesn't seem to exist prior to version 7, and CentOs
> Stream dropped the decimal-point - but VERSION_ID is the easiest to
> parse.

Is /etc/redhat-release always just one line? (Similar files like
/etc/lsb-release are several lines.)

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */

Re: how to capture only 7 or 8 in /etc/redhat-release

<u5nvfg$qqi0$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6327&group=comp.unix.shell#6327

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: richard....@gmail.com (Richard Harnden)
Newsgroups: comp.unix.shell
Subject: Re: how to capture only 7 or 8 in /etc/redhat-release
Date: Tue, 6 Jun 2023 19:55:44 +0100
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <u5nvfg$qqi0$1@dont-email.me>
References: <c617ead2-f74c-442a-a072-2e5d620ad183n@googlegroups.com>
<877cshke9b.fsf@nosuchdomain.example.com> <u5n32f$navg$1@dont-email.me>
<87ttvkiglt.fsf@nosuchdomain.example.com>
Reply-To: nospam.harnden@gmail.com
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 6 Jun 2023 18:55:44 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6dd4c7e2893b9cf11cca417196e5c62c";
logging-data="879168"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gNrweREadPRQPuN8WjSnN6f18XnvMXxQ="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.11.2
Cancel-Lock: sha1:FP8GcMYUv8TmafEIHoNs7OPpBaA=
In-Reply-To: <87ttvkiglt.fsf@nosuchdomain.example.com>
 by: Richard Harnden - Tue, 6 Jun 2023 18:55 UTC

On 06/06/2023 19:35, Keith Thompson wrote:
> Richard Harnden <richard.nospam@gmail.com> writes:
>> On 05/06/2023 18:30, Keith Thompson wrote:
>>> Neeraj Kumar <neeraj.friendslover@gmail.com> writes:
>>>> I have two version; please help me to get the version in the form of 7 or 8
>>> Please show us the content of /etc/redhat-release.
>>>
>>
>> This is what I have. They dropped 'Server' for version 8 ...
>>
>> Red Hat Enterprise Linux Server release 5.6 (Tikanga)
>> Red Hat Enterprise Linux Server release 5.8 (Tikanga)
> [SNIP]
>> Red Hat Enterprise Linux release 8.4 (Ootpa)
>> Red Hat Enterprise Linux release 8.6 (Ootpa)
>>
>> Also, CentOs ...
>>
>> CentOS Linux release 7.9.2009 (Core)
>> CentOS Stream release 8
>>
>> /etc/os-release doesn't seem to exist prior to version 7, and CentOs
>> Stream dropped the decimal-point - but VERSION_ID is the easiest to
>> parse.
>
> Is /etc/redhat-release always just one line? (Similar files like
> /etc/lsb-release are several lines.)
>

Yes, it's always one line.

Re: how to capture only 7 or 8 in /etc/redhat-release

<u5pbdr$12ka9$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6329&group=comp.unix.shell#6329

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: pyt...@aol.com (Pyt T.)
Newsgroups: comp.unix.shell
Subject: Re: how to capture only 7 or 8 in /etc/redhat-release
Date: Wed, 7 Jun 2023 07:25:47 -0000 (UTC)
Organization: nederlandse stichting
Lines: 40
Message-ID: <u5pbdr$12ka9$1@dont-email.me>
References: <c617ead2-f74c-442a-a072-2e5d620ad183n@googlegroups.com>
<877cshke9b.fsf@nosuchdomain.example.com> <u5n32f$navg$1@dont-email.me>
Injection-Date: Wed, 7 Jun 2023 07:25:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1779d3cadb9e74ec6073623ac8f6eb1e";
logging-data="1134921"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX193hPkW/hkHZsRRXvnJft8s"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:hszBib3yNHxkIDu3LwD9TVPwbr0=
 by: Pyt T. - Wed, 7 Jun 2023 07:25 UTC

On Tue, 6 Jun 2023 11:50:53 +0100, Richard Harnden <richard.nospam@gmail.com> wrote:
> Red Hat Enterprise Linux Server release 5.6 (Tikanga)
> Red Hat Enterprise Linux Server release 5.8 (Tikanga)
> Red Hat Enterprise Linux Server release 5.11 (Tikanga)
> Red Hat Enterprise Linux Server release 6.4 (Santiago)
> Red Hat Enterprise Linux Server release 6.6 (Santiago)
> Red Hat Enterprise Linux Server release 6.7 (Santiago)
> Red Hat Enterprise Linux Server release 6.8 (Santiago)
> Red Hat Enterprise Linux Server release 6.9 (Santiago)
> Red Hat Enterprise Linux Server release 6.10 (Santiago)
> Red Hat Enterprise Linux Server release 7.4 (Maipo)
> Red Hat Enterprise Linux Server release 7.6 (Maipo)
> Red Hat Enterprise Linux Server release 7.7 (Maipo)
> Red Hat Enterprise Linux Server release 7.9 (Maipo)
> Red Hat Enterprise Linux release 8.1 (Ootpa)
> Red Hat Enterprise Linux release 8.3 (Ootpa)
> Red Hat Enterprise Linux release 8.4 (Ootpa)
> Red Hat Enterprise Linux release 8.6 (Ootpa)

If I parse this list through:
sed 's/.*release \([^(]*\)(.*/\1/'

I get:
5.6
5.8
5.11
6.4
6.6
6.7
6.8
6.9
6.10
7.4
7.6
7.7
7.9
8.1
8.3
8.4
8.6

Re: how to capture only 7 or 8 in /etc/redhat-release

<u5pbt7$12ka9$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6330&group=comp.unix.shell#6330

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: pyt...@aol.com (Pyt T.)
Newsgroups: comp.unix.shell
Subject: Re: how to capture only 7 or 8 in /etc/redhat-release
Date: Wed, 7 Jun 2023 07:33:59 -0000 (UTC)
Organization: nederlandse stichting
Lines: 63
Message-ID: <u5pbt7$12ka9$2@dont-email.me>
References: <c617ead2-f74c-442a-a072-2e5d620ad183n@googlegroups.com>
<877cshke9b.fsf@nosuchdomain.example.com> <u5n32f$navg$1@dont-email.me>
<u5pbdr$12ka9$1@dont-email.me>
Injection-Date: Wed, 7 Jun 2023 07:33:59 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1779d3cadb9e74ec6073623ac8f6eb1e";
logging-data="1134921"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ntN3W0K2IW8rMvzP8tx5B"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:gBYb2V5PteHpBKlWxhzY0NaBBqw=
 by: Pyt T. - Wed, 7 Jun 2023 07:33 UTC

On Wed, 7 Jun 2023 07:25:47 -0000 (UTC), Pyt T. <pyt_t@aol.com> wrote:
> On Tue, 6 Jun 2023 11:50:53 +0100, Richard Harnden <richard.nospam@gmail.com> wrote:
>> Red Hat Enterprise Linux Server release 5.6 (Tikanga)
>> Red Hat Enterprise Linux Server release 5.8 (Tikanga)
>> Red Hat Enterprise Linux Server release 5.11 (Tikanga)
>> Red Hat Enterprise Linux Server release 6.4 (Santiago)
>> Red Hat Enterprise Linux Server release 6.6 (Santiago)
>> Red Hat Enterprise Linux Server release 6.7 (Santiago)
>> Red Hat Enterprise Linux Server release 6.8 (Santiago)
>> Red Hat Enterprise Linux Server release 6.9 (Santiago)
>> Red Hat Enterprise Linux Server release 6.10 (Santiago)
>> Red Hat Enterprise Linux Server release 7.4 (Maipo)
>> Red Hat Enterprise Linux Server release 7.6 (Maipo)
>> Red Hat Enterprise Linux Server release 7.7 (Maipo)
>> Red Hat Enterprise Linux Server release 7.9 (Maipo)
>> Red Hat Enterprise Linux release 8.1 (Ootpa)
>> Red Hat Enterprise Linux release 8.3 (Ootpa)
>> Red Hat Enterprise Linux release 8.4 (Ootpa)
>> Red Hat Enterprise Linux release 8.6 (Ootpa)
>
> If I parse this list through:
> sed 's/.*release \([^(]*\)(.*/\1/'
>
> I get:
> 5.6
> 5.8
> 5.11
> 6.4
> 6.6
> 6.7
> 6.8
> 6.9
> 6.10
> 7.4
> 7.6
> 7.7
> 7.9
> 8.1
> 8.3
> 8.4
> 8.6

Use:
sed 's/.*\([0-9]\)\..*/\1/'

to get:
5 5
5 6
6 6
6 6
6 7
7 7
7 8
8 8
8

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor