Last active
May 17, 2020 13:29
-
-
Save Kein1945/669b0aa0ffddef7329b4116bfd39958f to your computer and use it in GitHub Desktop.
[DEPRECATED] Bash currency converter, uses google conveter. Google closed that feature
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
to
- your default currency (in example Ruble)from
- default currency of valuecount
- default value to convert