Work the Shell - Solve: a Command-Line Calculator
Dec 01, 2007 By Dave Taylor
Use bc as a quick-and-dirty command-line utility.
Dave Taylor has been hacking shell scripts for over thirty years. Really. He's the author of the popular "Wicked Cool Shell Scripts" and can be found on Twitter as @DaveTaylor and more generally at www.DaveTaylorOnline.com.