New answers tagged

2

Using sed Here is one way: $ sensors -Af | sed -n '2{s/°.*//; s/[^+-]*//; p; q}' +105.8 Or, using the same command inside command substitution to capture its output in a variable: temp=$(sensors -Af | sed -n '2{s/°.*//; s/[^+-]*//; p; q}') s/°.*// removes the first occurrence of the degree symbol, °, and everything after it. s/[^+-]*// removes ...


0

The site is down but the mailing list is active; http://comments.gmane.org/gmane.linux.drivers.sensors/38361



Top 50 recent answers are included