Simple bash calculator
Put the following little snippet in your .bashrc/.bash_profile and you'll have a handy little calculator:
Use like this:
It should be easily modifiable for other shells/calculators.
Via: http://rentzsch.com/rock/longhand
? () { echo "$*" | bc -l; }
Use like this:
bash$ ? 2*2 4
It should be easily modifiable for other shells/calculators.
Via: http://rentzsch.com/rock/longhand