I want to insert word after nth line after pattern using sed. I tied to modify this command but it inserts only in first line after pattern.
sed -i '/myPattern/a \ LineIWantToinser ' myFile
What command should I use to insert for example in third line after pattern?
N
to add line between pattern and inserted line.