I am trying to write an awk script that gets values from a sequential file. I am using an if statement to check which lines to get. The if statement will start off being false, become true for a short period and then become false for the rest of the file. In order to save time when running the script, I would like the AWK statement to end once the if statement is no longer true. Can this be done? How do you end an AWK script early? Please provide an example.
Thanks in advance