Path: utzoo!utgpu!attcan!uunet!portal!cup.portal.com!compata From: compata@cup.portal.com Newsgroups: comp.unix.xenix Subject: Lines too long for vi and sed Message-ID: <7712@cup.portal.com> Date: 28 Jul 88 03:17:05 GMT Organization: The Portal System (TM) Lines: 17 XPortal-User-Id: 1.1001.4097 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@cup.portal.com