Would you like to have your personalized currency converter in your Linux terminal? will you have it, very simple this one uses the Google Currency Converter.
- Fire up your terminal and open .bashrc with your favorite editor.
$ sudo nano .bashrc - Copy and paste the code below.
cc() { wget -qO- "http://www.google.com/finance/converter?a=$1&from=$2&to=$3&hl=es" | sed '/res/!d;s/<[^>]*>//g'; }note: to save just press ctrl+o then ctrl+x
- Now update your .bashrc
$ source .bashrc
Now lets test your converter, usage format: (cc amount from_denomination to_denomination).
$ cc 1 aed php
output will be 1 AED = 11.7533 PHP
Now try it and share!




