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