View Single Post
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#367
Originally Posted by retsaw View Post
I don't know about better but the echo and command substitution are redundant (try removing them). To save on the cat you can use input redirection, try:
Code:
awk '{ print $1/10}' </sys/class/power_supply/bq27200-0/temp
That is so freakin' obvious I feel a deep sense of shame.

/me shuffles away to re-write his scripts.
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 

The Following User Says Thank You to vi_ For This Useful Post: