Basic calculator in command line with `bc`
For example, doing basic addition with bc
:
echo "1 + 3" | bc -l
echo "1 + 3" | bc -l
outputs:
4
4
-l
provides the standard math library.
For example, doing basic addition with bc
:
echo "1 + 3" | bc -l
echo "1 + 3" | bc -l
outputs:
4
4
-l
provides the standard math library.