Created
February 13, 2013 06:33
-
-
Save sheki/4942706 to your computer and use it in GitHub Desktop.
Source this from your .zshrc or .bashrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function million { | |
| m="$1" | |
| if [ -z "$m" ] ; then | |
| $m=1 | |
| fi | |
| echo $((m * 1000000)) | |
| } | |
| function billion { | |
| inMillions=$(million "$1") | |
| echo $((inMillions * 1000)) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment