SyntaxFix
Write A Post
Hire A Developer
Questions
You can try:
top -bn1 | grep "Cpu(s)" | \ sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | \ awk '{print 100 - $1"%"}'