I have two related sets of files that I need to search. Please note that the dashes are not part of the file they just separate the file names
from the contents
Set 1 has the following fields date, record number, name
set1_2009-05-20.txt << file name
-------------------
2009-05-20~1~Name1...
Hi I'm an awk newbie and I need help with a problem.
I have some files in which I need to match a certain pattern, skip two lines and then replace the current line (after skipping) with something e.g.
...
line a ("tom") <-- tom is the pattern to be found
line b blah blah <-- to be skipped
line...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.