Aug
21
Put the following little snippet in your .bashrc/.bash_profile and you’ll have a handy little calculator:
? () { echo "$*" | bc -l; }
Use like this:
bash$ ? 2*2
4
Thanks textsnippets.com
Put the following little snippet in your .bashrc/.bash_profile and you’ll have a handy little calculator:
? () { echo "$*" | bc -l; }
Use like this:
bash$ ? 2*2
4
Thanks textsnippets.com