Command Line Currency Convertion For Linux
Page 1 of 1
Command Line Currency Convertion For Linux
- Code:
sudo gedit ~/.bashrc
Create new line at the end of the file, and put this code:
- Code:
currency_convert() {
curl -s "http://www.google.com/finance/converter?a=$1&from=$2&to=$3" | sed '/res/!d;s/<[^>]*>//g';
}
http://www.ubuntubuzz.com/2012/04/trick-currency-converter-on-command.html
now save and exit
now type
source ~/.bashrc
currency_convert 1 usd eur
Last edited by jamied_uk on 25th March 2016, 01:36; edited 2 times in total
Similar topics
» Covert wav to mp3 in linux command line
» Using Timeshift From Command Line Linux cli
» How To Close Linux App From Command Line Or Script
» Clone a whole site from Linux Command Line
» HOW TO FIX SCREEN RES ISSUES FROM LINUX COMMAND LINE!
» Using Timeshift From Command Line Linux cli
» How To Close Linux App From Command Line Or Script
» Clone a whole site from Linux Command Line
» HOW TO FIX SCREEN RES ISSUES FROM LINUX COMMAND LINE!
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum