sed/awk scripting help to edit files automatically.
I have two files, where one file is already having some changes.
and i want to incorporate same changes into another file.
So,I need to write one script, which
will do following steps sequentially:
search for specific pattern in a given file, and search the same pattern in another file, and finally copy the text found after 2 lines of searched pattern in first file into second file after 2 lines of the searched pattern.
so, if it is possible with sed/awk scripting, pls help me out..