Re: Re: [SLUG] Getting rid of ASCII 127 in a text file?

From: awyatt@fewt.com
Date: Fri May 31 2002 - 11:31:43 EDT


cat filename | perl -e '$char r(127);while (<STDIN>) {$_=~s/$char//gi;print $_;}' >newfilename

You Wrote:

Date: 31 May 2002 11:21:02 -0400
From: Ben Ostrowsky <ostrowb@tblc.org>
To: SLUG <slug@nks.net>
Subject: Re: [SLUG] Getting rid of ASCII 127 in a text file?

On Fri, 2002-05-31 at 08:37, awyatt@fewt.com wrote:
> cat file | sed -e s#\127##gi>anotherfilename

That transforms the title "The giggle kids present 127 reproducible
activities for the early childhood teacher" into "The giggle kids
present reproducible activities for the early childhood teacher".

Hmm... maybe I need a hex editor.

Ben



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:39:25 EDT