I need to replace this pattern on 3 consecutive lines with a blank. These line are consecutive and occure ramdomly at dt different places throughout the file.
The awk example is harder because I assume to keep these strings when they are out of order/sequence in instances of lines fewer then 3 and at the end of the file - common sources of error in awk scripts. Similar is the $!N in the sed script. Cheers,
ND
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.