How can I do the following...
A file something like this:
some lines
Test
some lines
I want to end up with:
some lines
Test
Test1
some lines
So basically, I want to replace Test with Testnew lineTest1. Can't seem to do
it with sed, and would prefer to stay away from Perl. It won't
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
}
}'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:44 -0400
I think you can do it with sed, but one trick would be to make sure you are
not writing