Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!caen!uakari.primate.wisc.edu!samsung!munnari.oz.au!brolga!uqcspe!qfagus!root From: root@qfagus.OZ (Super user) Newsgroups: comp.unix.questions Subject: Filtering escape codes from text files Keywords: escape code, filter Message-ID: <27079@qfagus.OZ> Date: 24 Jan 91 01:56:50 GMT Organization: Department of Forestry, Brisbane, Australia Lines: 16 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@qfagus.aus