Calculate with command-line tool bc

Basic usage

$ echo 'expr' | bc

Hex to Dec

$ echo 'ibase=16;obase=A;FF' | bc
255

Comments