assuming you want everything before the second dot, this will do what you want:
uname -r | cut -d. -f1-2
uname itself does not support cutting the output, afaik. The pipe through cut will show you fields 1 and 2 (-f1-2
), delimited by dots (-d.
)