- Is it I can use
gcalccmd
in Ubuntu server as how I use in terminal of my Ubuntu Desktop? If yes, can I convert currency using command as I do withgnome-terminal
infinancal mode
If yes, what is command line to convert currency? (ex: 1 USD to SGD)
2.1 There's limit to convert the currency? (ex: max 100 times in a day only)
You can download qalculate from the Ubuntu Software Centre. This application allows you to download current rates and calculate the exchange rate from the command line.
You can then update the rate using the command exrates on the command lie in terminal. Use help from the command line when you are in the tool to see the various commands available.
You would need to have qalc installed (but not running) and you can then call the exchange rate from the command line or a script by using (for example):
1 GBP to EUR
You can also use
qalc -t 1 GBP to EUR
(-t = terse, the opposite of verbose) but you can also use the awk command to split out the value only as in:awk -F' ' '{print $2}' <<< `qalc -t 500 GBP to EUR`
This will give the value 560.63584 (at the rate given)