cpu.sh 113 B

12
  1. #!/bin/bash
  2. top -b -n 1 | grep Cpu | sed 's/:/ /g' | awk '{printf "%.2f\n", $(NF-13) + $(NF-15)}' | sed -n '1 p'