The below awk script: ```awk a++ == 2, a++ == 5 ``` with this input: ``` 1 2 3 4 5 6 7 8 9 10 ``` should print: ``` 3 4 5 ``` But Jawk produces: ``` 2 3 ``` because it executes both *begpat* and *endpat* for each record. The tuples must be updated to reflect this.
The below awk script:
with this input:
should print:
But Jawk produces:
because it executes both begpat and endpat for each record.
The tuples must be updated to reflect this.