Skip to content

Instantly share code, notes, and snippets.

@sheki
Created February 13, 2013 06:33
Show Gist options
  • Select an option

  • Save sheki/4942706 to your computer and use it in GitHub Desktop.

Select an option

Save sheki/4942706 to your computer and use it in GitHub Desktop.
Source this from your .zshrc or .bashrc
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