Skip to content

Instantly share code, notes, and snippets.

@ikari-pl
Last active December 3, 2015 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ikari-pl/bf92fea745e4c6a4f9f1 to your computer and use it in GitHub Desktop.
Save ikari-pl/bf92fea745e4c6a4f9f1 to your computer and use it in GitHub Desktop.
Any currency to PLN (hardcoded one) command line converter
ileto() {
curl -s -L "http://www.google.com/finance/converter?a=$1&from=$2&to=pln&hl=pl" | sed '/res/!d;s/<[^>]*>//g'
}
alias iletokurwa=ileto
# examples:
# ⇒ ileto 100 usd
# 100 USD = 335.4000 PLN
#
# ⇒ iletokurwa 100 eur
# 100 EUR = 418.5300 PLN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment