Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

The solution of this problem is trivial and is left as an exercise for the reader.


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

SubjectAuthor
o Re: how to capture only 7 or 8 in /etc/redhat-releaseCyrille Lefevre

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

<66062301$0$2568$426a34cc@news.free.fr>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=7739&group=comp.unix.shell#7739

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!newsfeed.bofh.team!2.eu.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!cleanfeed3-b.proxad.net!nnrp3-2.free.fr!not-for-mail
Date: Fri, 29 Mar 2024 03:10:11 +0100
From: Cyrille.Lefevre-news%nospam@laposte.net.invalid (Cyrille Lefevre)
Newsgroups: comp.unix.shell
Subject: Re: how to capture only 7 or 8 in /etc/redhat-release
References: <c617ead2-f74c-442a-a072-2e5d620ad183n@googlegroups.com>
Organization: ACME
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Lines: 14
Message-ID: <66062301$0$2568$426a34cc@news.free.fr>
NNTP-Posting-Date: 29 Mar 2024 03:10:09 CET
NNTP-Posting-Host: 82.65.102.225
X-Trace: 1711678209 news-4.free.fr 2568 82.65.102.225:58782
X-Complaints-To: abuse@proxad.net
 by: Cyrille Lefevre - Fri, 29 Mar 2024 02:10 UTC

Le Mon, 5 Jun 2023 05:23:27 -0700 (PDT), Neeraj Kumar <neeraj.friendslover@gmail.com> a écrit :

> I have two version; please help me to get the version in the form of 7 or 8

osver=$(tr -cd 0-9 < /etc/redhat-release)
minor=%${osver#?}
major=${osver%${osver#?}}

Regards
--
mailto:Cyrille.Lefevre-news%nospam@laposte.net.invalid
remove "%nospam" and ".invalid" to answer me.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor