[TriLUG] detecting kernel major/minor versions

Rick DeNatale rick.denatale at gmail.com
Thu Jun 29 15:33:33 EDT 2006


On 6/29/06, Owen Berry <oberry at trilug.org> wrote:
> On Thu, Jun 29, 2006 at 01:07:56PM -0400, Rick DeNatale wrote:
> > I'm missing something here, in my case both forms of the -f parm give
> > the same results:
> >
> > rick at bill:~$ uname -r
> > 2.6.15-25-686
> > rick at bill:~$ uname -r | cut -d. -f3-
> > 15-25-686
> > rick at bill:~$ uname -r | cut -d. -f3
> > 15-25-686
>
> The -d. makes a dot (.) the delimiter. Since there are no dots left in
> 15-25-686, there is no change in whether you ask for the 3rd field, or
> the 3rd field and everything after. Make sense?

Yes, I did understand all that.  I guess I was pointing out that the
suggested solution still wasn't general enough.


-- 
Rick DeNatale

IPMS/USA Region 12 Coordinator
http://ipmsr12.denhaven2.com/

Visit the Project Mercury Wiki Site
http://www.mercuryspacecraft.com/



More information about the TriLUG mailing list