From: Christian G. <cg...@hq...> - 2003-04-08 19:24:01
|
> Thx for your suggestion and I can see some merit here. > I am, however, starting to think I am off topic for this > list. > > My real problem is that I do not have multiple lines of > data to parse. It's all one long line with lots of > control chars. > > When I print the data to a file > cat <filename> > shows output that looks just like my telnet session. > cat -v <filename> > shows all the ugly special chars > wc -l <filename> > shows I have one line of data and > cat <filename> | wc -l > still tells me I have one line of data. What you need here is a terminal emulator. If you're really unlucky, the other side will optimize redraws and you will not easily get the correct picture. As a first step, you could simply try ignoring the special chars, but you may end up having to emulate the screen and do "screen scraping". -- cg |