ampere_research/power.sh

3 lines
99 B
Bash
Raw Permalink Normal View History

2024-10-29 16:39:35 -04:00
#! /bin/sh
sensors | awk '/CPU power:/ {printf "Socket"++count[$1] " "; print $3}' >> power.output