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

From: Paul M Foster (paulf@quillandmouse.com)
Date: Fri Oct 05 2001 - 02:29:44 EDT


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:17 EDT