#########################################################################
## Name : get-kernel-version.sh
## Author : Saurabh Gupta
## Date : AM 09:25 14 October 2011
## Desc : retrieves the kernel version of the linux
## Source : http://ccplusplus.com/p/shell-scipt.html
## Note :
#########################################################################
echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
echo "XXXXXXX Retrieving the Kernel Information XXXXXXX"
echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
version=`uname -r | awk -F. '{ printf("%d.%d.%d\n",$1,$2,$3); }'`
echo " "
printf "Kernel Version : %s\n" $version
echo " "echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
## Name : get-kernel-version.sh
## Author : Saurabh Gupta
## Date : AM 09:25 14 October 2011
## Desc : retrieves the kernel version of the linux
## Source : http://ccplusplus.com/p/shell-scipt.html
## Note :
#########################################################################
echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
echo "XXXXXXX Retrieving the Kernel Information XXXXXXX"
echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
version=`uname -r | awk -F. '{ printf("%d.%d.%d\n",$1,$2,$3); }'`
echo " "
printf "Kernel Version : %s\n" $version
echo " "echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
No comments:
Post a Comment