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.