4 lines
101 B
Bash
4 lines
101 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
top -bn2 | grep '%Cpu' | tail -1 | grep -P '(....|...) id,'|awk '{print "" 100-$8 "%"}'
|