[TriLUG] detecting kernel major/minor versions
Owen Berry
oberry at trilug.org
Thu Jun 29 13:25:53 EDT 2006
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?
Owen
More information about the TriLUG
mailing list