ampere_research/power.sh
2024-10-29 16:39:35 -04:00

3 lines
99 B
Bash

#! /bin/sh
sensors | awk '/CPU power:/ {printf "Socket"++count[$1] " "; print $3}' >> power.output