Re: some kind of binary sed(1) command

2012-02-02 Thread Nikos Vassiliadis
On 2/2/2012 8:22 AM, Matthias Apitz wrote: Hello, I have a normal ASCII file wich has in some places two lines of '*', separated by an empty line, i.e. \n *\n \n *\n \n and I want to substitute the \n between the star lines by \f; the 'binary' s

Re: some kind of binary sed(1) command

2012-02-02 Thread Robert Bonomi
> From: Matthias Apitz > > El dia Thursday, February 02, 2012 a las 01:51:56AM -0600, Robert Bonomi > escribio: > > Thanks, but the attached script (based on your content and saved to a > script file) just gives: *sigh* the code worked wih gnu sed. BSD sed is a whole lot more finicky with reg

Re: some kind of binary sed(1) command

2012-02-02 Thread Matthias Apitz
El día Thursday, February 02, 2012 a las 01:51:56AM -0600, Robert Bonomi escribió: > > From owner-freebsd-questi...@freebsd.org Thu Feb 2 00:27:33 2012 > > Date: Thu, 2 Feb 2012 07:22:36 +0100 > > From: Matthias Apitz > > To: freebsd-questions@freebsd.org > > Su

Re: some kind of binary sed(1) command

2012-02-01 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org Thu Feb 2 00:27:33 2012 > Date: Thu, 2 Feb 2012 07:22:36 +0100 > From: Matthias Apitz > To: freebsd-questions@freebsd.org > Subject: some kind of binary sed(1) command > > > Hello, > > I have a normal ASCII file wich h

some kind of binary sed(1) command

2012-02-01 Thread Matthias Apitz
Hello, I have a normal ASCII file wich has in some places two lines of '*', separated by an empty line, i.e. \n *\n \n *\n \n and I want to substitute the \n between the star lines by \f; the 'binary' sed command would just be s/*\n\