Thank you. The second command seems to work but not for all the instances. For example, the last lines in the source file are:
VVE.MI VIAGGI DEL VENTAGLIO 0,2500 13 ott Up 0,0088
XPR.MI EXPRIVIA 0,7653 13 ott Up 0,1210
ZUC.MI ZUCCHI SPA 1,4010 13 ott Up 0,0010
ZUCR.MI ZUCCHI SPA RISP NC 2,5000 6 ott 0,0000
ZV.MI ZIGNAGO VETRO 3,6500 13 ott Up 0,0100
That's the simplest solution and it definitely seems to work. One question though... the whole script (still partial actually) includes a lot of text manipulation, plenty of 'grep', 'tr', 'head', 'tail', and of course several pipes. The source data is downloaded from Yahoo finance via 'lynx -dump' and does not go beyond 250 lines. After dumping the 5 web pages, the CPU usage goes up to 100% for almost a minute (on a PIV, 3GHz). I didn't think this task was supposed to be so CPU-intensive for a modern PC. To be honest I still haven't had a chance to test it under linux, I am using a Win2K workstation and cygwin. What is your opinion on this?