Re: Sed replace and add a line

2000-08-31 Thread Bob McGowan
"Christopher W. Aiken" wrote: > > On Thu, Aug 31, 2000 at 12:13:33PM +, Jaume Teixi wrote: > -|I'm trying to use sed to search pattern 228 and add a line as follows: > -| > -|288 > -|229 > -| > -|I type: > -|sed /s/228/'\n 229`/ My copy of sed complains when I type in the pattern you have sup

Re: Sed replace and add a line

2000-08-31 Thread Christopher W. Aiken
On Thu, Aug 31, 2000 at 12:13:33PM +, Jaume Teixi wrote: -|I'm trying to use sed to search pattern 228 and add a line as follows: -| -|288 -|229 -| -|I type: -|sed /s/228/'\n 229`/ -| -|and \n doesn't works =( -| -|how to add a line when replacing ? -| -|bests, -|jaume. -| Try changing the "\n

Sed replace and add a line

2000-08-31 Thread Jaume Teixi
I'm trying to use sed to search pattern 228 and add a line as follows: 288 229 I type: sed /s/228/'\n 229`/ and \n doesn't works =( how to add a line when replacing ? bests, jaume.