Legendary_Bibo
June 2nd, 2011, 02:05 PM
I was bored because I couldn't fall asleep (still can't actually) so I bugged around with the sensors command, and I just wanted it to print out the the temperature from the virtual device, not the PCI sensor, and nothing more (it's more accurate).
sensors -A > sensorinfo3 && cat sensorinfo3 | cut -f2 -d'+' > sensorinfo4 && sed -n 2p sensorinfo4 > sensorinfo5 && cat sensorinfo5 | cut -c1-7
I then made is into a shell script and wrote an alias in my bashrc file so that 'sensors' would redirect to this script instead.
sensors -A > sensorinfo3 && cat sensorinfo3 | cut -f2 -d'+' > sensorinfo4 && sed -n 2p sensorinfo4 > sensorinfo5 && cat sensorinfo5 | cut -c1-7
I then made is into a shell script and wrote an alias in my bashrc file so that 'sensors' would redirect to this script instead.