I search for a way to get the last exchange rate online using the command line. I want to use it with another program. Until now all I have is this:
wget -qO- "http://www.google.com/finance/converter?a=1&from=usd&to=inr&hl=es" | sed '/res/!d;s/<[^>]*>//g';
Not my code, found on web.
It will output to console, but I need to save it in a file or to a variable in other program that will call that command. I don't have experience with wget and couldn't find any other way to do what I want. Is there any program (Windows is preferred, but *nix is acceptable) to do that or is there a way with wget?