you can use


str=`uname -r|awk -F"-" '{print $1}'`



regards
manoj