how to add a line after a specific line

hi

I want to add a line just after a specific line

can you please help?

thx

awk -v v="new line" '/pattern/{print;getline;print v}1' file > new_file

Or you can search the forum for other solution's.

use SED a\ i\ c\ option, it is very convenient.
Here is an example.
/<Larry's Address>/a\
4700 Cross Court\
French Lick, IN