I need to search for a string in a file, then I need to some text after one line following the first match. I need to perform this for a number of files in a script.
I am trying to use vim ex mode for this. I know
:/search_string can perform a search but I am not able to figure out how to move the cursor down and insert the line.
Will sed or awk be more suitable for this?
I need to do this in a script.