Scuze, am sters mesajul si nu mai pot da reply.

Ca sa vezi ce curs are dolarul in raport cu leul poti face asa:

lynx -dump 'http://finance.yahoo.com/m3?a=1&s=USD&t=ROL' | grep USDROL | head -1

Pagina in sine este mica pe un dispplay text only.


Iti da o linie de unde poti ochi 30290.00, sau 30,290.00. Mai multa
cosmetica? Incearca cu mawk:


lynx -dump 'http://finance.yahoo.com/m3?a=1&s=USD&t=ROL' | grep USDROL | head -1 | 
mawk -W interactive '{ print "1 USD = " $4 " ROL" }'

1 USD =30290.00 ROL

sau

lynx -dump 'http://finance.yahoo.com/m3?a=1&s=USD&t=ROL' | grep USDROL | head -1 | 
mawk -W interactive '{ print "1 USD = " $5 " ROL" }'

daca iti place cu virgula.

1 USD = 30,290.00 ROL

Alte monede? s/USD/GBP/g etc.




Ionel
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
unsubscribe from this list.

Raspunde prin e-mail lui