Are you interested in becoming an AWS Certified Solutions Architect?
Discover a new interactive way of training for the exam.
#!/bin/bash #LOGFILE=/var/log/monitoring/cpu/util #mkdir -p $LOGFILE #mpstat -u > $LOGFILE/util UTIL="mpstat -u" #cat $LOGFILE/util | grep -Ev "Linux|%" > $LOGFILE/util1 UTIL1="mpstat -u|grep -Ev "Linux|%"" #Deleting empty lines #sed '/^$/d' $LOGFILE/util1 >> $LOGFILE/util2 UTIL2="sed '/^$/d' $UTIL1" UTIL3="cut -c 21-24 $UTIL2" echo $UTIL3
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.