Create Your Own Quick Calculator Function for the Terminal
- by The Geek
If you’re anything like me, you’ve always got a Terminal window open, and you probably have even assigned a hotkey to bring it up anytime. So why open up the boring calculator when you can solve equations right there on the command line?
This is a simple method for creating a calculator using the built-in function support in the Bash shell. Essentially all we’re doing is assigning the question mark to run the bc command with whatever arguments you type after it.
Latest Features
How-To Geek ETC
RGB? CMYK? Alpha? What Are Image Channels and What Do They Mean?
How to Recover that Photo, Picture or File You Deleted Accidentally
How To Colorize Black and White Vintage Photographs in Photoshop
How To Get SSH Command-Line Access to Windows 7 Using Cygwin
The How-To Geek Video Guide to Using Windows 7 Speech Recognition
How To Create Your Own Custom ASCII Art from Any Image
Vintage Posters Showcase the History of Tech Advertising
Google Cloud Print Extension Lets You Print Doc/PDF/Txt Files from Web Sites
Hack a $10 Flashlight into an Ultra-bright Premium One
Firefox Personas Arrive on Firefox Mobile
Focus Booster Is a Sleek and Free Productivity Timer
What is the Internet? From the Today Show January 1994 [Historical Video]