Re: Replace a line... with 2 lines

2002-10-06 Thread Ziad Samaha
quot;test1\n"); } else { print $0 } }'>filename Regards, Ziad >From: Mitchell Wright <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: <[EMAIL PROTECTED]> >Subject: Re: Replace a line... with 2 lines >Date: Sun, 06 Oct 2002 09:23:4

Re: Replace a line... with 2 lines

2002-10-06 Thread Mitchell Wright
I think you can do it with sed, but one trick would be to make sure you are not writing out to the same file as you are reading from. This may be unique to me, but I had a hell of a time trying to figure what was wrong with a similar thing I was working on. It turned out to be that I had to bring