Answer by Melebius for print a string from a specific file
The command uname -a prints all the information about your kernel while uname -v only prints kernel version which is the part ending with the date:$ uname -v#155 PREEMPT Thu Nov 16 09:41:07 IST 2017You...
View ArticleAnswer by George Udosen for print a string from a specific file
This awk will do that using this variable: uname -a | awk '{ print $7,$8,$9,$10,$11 }'Result:Nov 16 09:41:07 IST 2017awk: start awk program'{ print $7,$8,$9 }': print the 7th, 8th and 9th fields with ,...
View Articleprint a string from a specific file
Let us suppose that there is a command such as:# uname -aLinux (none) 2.6.24 #155 PREEMPT Thu Nov 16 09:41:07 IST 2017 ppc GNU/LinuxNow, my question is: Are there any commands which will only print:Nov...
View Article
More Pages to Explore .....