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
awk '{ print $1/10}' </sys/class/power_supply/bq27200-0/temp