Created
April 14, 2015 12:17
-
-
Save ericcholis/8854abe3c214848185ee to your computer and use it in GitHub Desktop.
Currency Conversion
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
#!/usr/bin/env bash | |
curl "http://www.xe.com/wap/2co/convert.cgi?Amount=$1&From=$2&To=$3" -A "Mozilla" -s | sed -n "s/.*>\(.*\) $3<.*/\1/p"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment