Use bc to solve simple math expressions

From Colettapedia
Jump to navigation Jump to search

solve.sh

#!/bin/sh

bc << EOF
scale=4
$@
quit
EOF