On Thu, Aug 31, 2000 at 12:13:33PM +0000, 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" to a "Ctrl-V Ctrl-M" -- --- Christopher W. Aiken, Scenery Hill, Pa, USA chris at cwaiken dot com, www.cwaiken.com Preferred O/S: FreeBSD 4.0