Today I accidentally I found a calculator on my computer, bc. Let’s look at it!
Here’s how I entered the bc REPL.
bc
Here’s me adding, a few different ways:
# REPL!
$ bc
>>> 1 + 1
2
# Eval!
$ bc -e "1 + 2"
3
# File!
$ cat add
1 + 3
$ bc -f add
4
I’m reading the author’s website and may have some more tips and tricks next time!