What's new

Need some help with "sed" command

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

That's handy, my 86U is at 68.458 °C, ambient temperature 23 °C.

Cool... pun intended.

If you add to my little bash script... one can get some real time clock rates from linux direct...

Code:
#!/bin/bash
# create this file in the user dir, and make it executable
celsius=$(cat /sys/class/thermal/thermal_zone0/temp | sed 's/.\{3\}$/.&/')
clock0=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq | sed 's/.\{3\}$/.&/')
echo "ARM Temp => ${celsius} °C"
echo "Core0Clock=> ${clock0} MHz"

ARM Temp => 53.692 °C
Core0Clock=> 600.000 MHz

And then do n+1 from there...

Gosh - just noticed - scripting/coding style and first languages... as you can tell, I'm from the pascal world...
 
Last edited:

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top