Filtering escape codes from text files

Super user root at qfagus.OZ
Thu Jan 24 12:56:50 AEST 1991


Can someone please tell me how to filter escape codes
from a text file?

I'm using `cu' to connect to a remote computer which
uses things like reverse video.  The only way I have
of printing anything from this computer is to capture
the entire session to a log file and then edit and 
print it.  Editing out escape codes is _extremely_
tedious.  I'm sure there is some simple solution to this
problem (maybe using `tr'?).

I can't read news, only post it, so could you please mail
replies direct to me.  Thanks!

Kas Sommers, Queensland Forest Service
kas at qfagus.aus



More information about the Comp.unix.questions mailing list