AWK- processing data inside start/stop pairs but ignoring start/stop lines
I would like to know how to perform a small task in AWK. I'm able to extract data from a text file using "awk '/start/,/stop/'" all fine - I now wish to process the data further from the extract using AWK but ignoring the start/stop pair used to define the data set.
Start of text
line1 word1 word2
line2 word1 word2
End of Text
Is this possible please - any ideas ? Using the start/stop pair thereby inclus the first and last lines in the output, which I don't wish to process.
Cheers - Ian
You can check whether the line matches the start or stop pattern. If so, do nothing. Else continue with whatever you need to do.
Something like that maybe:
|All times are GMT -5. The time now is 06:17 PM.|