[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Sed replace and add a line



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.



Reply to: