From owner-freebsd-questions Thu Nov 23 7: 2: 2 2000 Delivered-To: freebsd-questions@freebsd.org Received: from postmarq.mu.edu (hermes.mu.edu [134.48.1.5]) by hub.freebsd.org (Postfix) with ESMTP id E658E37B479 for ; Thu, 23 Nov 2000 07:02:00 -0800 (PST) Received: from marquette.edu ([127.0.0.1]) by postmarq.mu.edu (Netscape Messaging Server 4.15) with ESMTP id G4HGFC00.DIR; Thu, 23 Nov 2000 09:02:00 -0600 From: Jeremy Vandenhouten To: Steve the teco , questions@freebsd.org Message-ID: <2ce8522d2567.2d25672ce852@marquette.edu> Date: Thu, 23 Nov 2000 09:02:00 -0600 X-Mailer: Netscape Webmail MIME-Version: 1.0 Content-Language: en Subject: Re: removing escape chr (printer) X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > The problem is the text is full of printer codes > > ^[^[&a8R^[^[&f0S^[^[&a4C^[^[&f0S^[*c2221A^[*c95B^[*c15G^[*c2P^[*c4A^ [*c1852B^[*c0P^[*c2221A^[*c4B^[*c0P^[*p+59Y^[*p > +200X^[^[(s0p10h0s3b4099TPROJECT > COST^[*p+330X^[*p-20Y^[^[(s0p17h0s3b4099T1999^[*p+40Y^[*p- > 85XActual^[*p-40Y^[*p+70 > X2000^[*p+40Y^[*p-89XBudget^[*p-40Y^[^[&f0S > Someone probably already beat me to this, but the easiest way is to write a shell or Perl script to look for control characters and remove them. I have something similar at work that looks for ^M when I receive text files written in MS format to remove all the ^M's. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message