by icefog · 6y ago · 0 comments
calc () { awk "BEGIN { print "$*" }" }
$ calc "2^16"
65536
$ calc "2*16"
32
$ calc "2+16"
18 $ bc -l <<< 2^16
65536
$ bc -l <<< 2*16
32
$ bc -l <<< 2+16
18 $ units -t "sqrt(3^2 + 4^2)"
5
$ units -t "forty rods per hogshead" "miles per usgallon"
0.0019825576
$ units -t "32GB / (1MB/s)" "hours; minutes"
8;53.333333