Lines too long for vi and sed

compata at cup.portal.com compata at cup.portal.com
Thu Jul 28 13:17:05 AEST 1988


Usually I keep a log file running when using kermit or pcomm to log into a
remote system.  This log file receives everything I receive, including escape
sequences.  Some systems send a large number of escapes to paint a screen of
information, and don't send any CR/LF controls.  The result is that sometimes
my log files have more than 510 characters between LFs (NLs to Xenix).  Later
when I try to edit these files, vi chokes.  I've tried using sed to clean them
up but it chokes in the same way, "line too long".  I've lost the last part
of many log files this way.

(I'm running SCO Xenix 386 2.2.3 including OS, DevSys, TxtPS, and VP/ix.)  

Is there a way to replace escape sequences with NLs, wholesale or selectively?
Is there another way to access these files so I can intelligently parse them
and extract the useful portions?

Dave Close, Compata, Arlington, Texas
compata at cup.portal.com



More information about the Comp.unix.xenix mailing list