Can awk patterns match multiple lines?
Awk can easily detect multi-line combinations of patterns, but you need to create what is called a state machine in your code to recognize the sequence. Consider this input: how second half #1 now first half second half #2 brown second half #3 cow As you have seen, it’s easy to recognize a single pattern. … Read more