Re: [Nolug] Major kernel version, or "extracting substring from a symbol"

From: Ron Johnson <ron.l.johnson_at_cox.net>
Date: Thu, 26 Feb 2004 08:45:49 -0600
Message-Id: <1077806749.17258.17.camel@haggis.homelan>

On Thu, 2004-02-26 at 07:53, scotth@scottharney.com wrote:
> Ron Johnson <ron.l.johnson@cox.net> writes:
>
>
> > Hi,
> >
> > We all know that "uname -r" gives the exact kernel version. How
> > do I extract out the "2.4"?
>
> Do you have the "kernelversion" command? It exists on my
> debian and gentoo boxes.
>
> In any case, "kernelversion" is this shell script:

Got it, thanks.

$ dpkg -S /bin/kernelversion
modutils: /bin/kernelversion

-- 
-----------------------------------------------------------------
Ron Johnson, Jr. ron.l.johnson@cox.net
Jefferson, LA USA
"Give a man a fish, you feed him for a day, teach him to fish, he
gets mad at you for making him have to work so hard."
___________________
Nolug mailing list
nolug@nolug.org
Received on 02/26/04

This archive was generated by hypermail 2.2.0 : 12/19/08 EST