DutchDaemon solutions sounds much better
There Is difference of grep and -n on sysctl? (except the output of "sysctl -n dev.cpu.0.temperature" shows the temp of the first core and "sysctl dev.cpu | grep" shows temp of all cores)

There Is difference of grep and -n on sysctl? (except the output of "sysctl -n dev.cpu.0.temperature" shows the temp of the first core and "sysctl dev.cpu | grep" shows temp of all cores)

Click to expand...

You're on FreeBSD, and the documentation is at your fingertips!

-n shows the variable without the names. You get the difference you mentioned because DutchDaemon specified core 0. You could just as well use % sysctl -n dev.cpu or better, call % sysctl -n dev.cpu.n.temperature four times one for each core. Like this: