How do I write a awk script that scans the input file for "start" and finds the line containing "next" and displays the following line? Something like this:
[user]$ cat test.txt
start
next
This line should print
Ignore this
[user]$ display.awk test.txt
This line should print
[user]$ cat test1.txt
Ignore this
next
Ignore this
start
Ignore this
next
This line should print
Ignore this
next
Too late so ignore this too
start
Ignore this too
[user]$ display.awk test1.txt
This line should print