Created
February 12, 2017 11:10
-
-
Save Kein1945/8fb0fd4fbe4284c5c6607ad2ebea7743 to your computer and use it in GitHub Desktop.
Bash currency converter, uses google conveter.
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
money() { | |
to=${3:-rub} | |
from=${2:-usd} | |
count=${1:-1} | |
wget -qO- "http://www.google.com/finance/converter?a=$count&from=$from&to=$to" | sed '/res/!d;s/<[^>]*>//g'; | |
} | |
alias m='money' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment