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

From: Todd Robinson (mtrob@penguix.com)
Date: Fri May 31 2002 - 14:54:42 EDT


Or,

tr -d /\177// < input.txt > output.txt
         ^
     octal value of decimal 127

Todd

> -----Original Message-----
> From: slug@lists.nks.net [mailto:slug@lists.nks.net] On
> Behalf Of awyatt@fewt.com
> Sent: Friday, May 31, 2002 11:32 AM
> To: slug@nks.net
> Subject: Re: Re: [SLUG] Getting rid of ASCII 127 in a text file?
>
>
>
> cat filename | perl -e '$char=r(127);while (<STDIN>)
> {$_=/$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:57 EDT