Re: [SLUG] Regexp's and non-printable characters (ANSWERED)

From: Jim Wildman (jim@rossberry.com)
Date: Fri Oct 05 2001 - 10:11:45 EDT


Did you try previxing the control character with a control-v?

------------------------------------------------------------------------
Jim Wildman jim@rossberry.com

On Fri, 5 Oct 2001, Paul M Foster wrote:

> On Fri, Oct 05, 2001 at 01:26:19AM -0400, Paul M Foster wrote:
>
> > Sometimes I have to replace characters in a text file with non-printable
> > characters, primarily the tab (0x09) character. I've tried sed, but I
> > can't seem to find the right thing to put in to make it replace with a
> > tab. I'm looking for something that works from the command line. Any
> > ideas?
> >
> > Paul
>
> I spoke too soon. The answer is tr, as in:
>
> cat myfile | tr ":" "\t" > yourfile
>
> But if anyone knows how to make sed do the same thing, I'm interested.
>
> Paul
>



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 14:59:22 EDT