[18:15] <BugeyeD> hi all. looking for some awk help. the standard oreilly books aren't doing it for me. i need to search for pattern X, and then pattern Y. patterns X and Y exist in several locations, but i need to be finding the Y that comes right after the X. currently i'm picking up Y prior to X because i don't know how to limit my searches.
[18:15] <BugeyeD> hints?
[18:19] <BugeyeD> currently i have something like this: BEGIN {} /X/ { myx = $2 } /Y/ { myy = $5 } END { print myx, myy }
[18:20] <BugeyeD> X and Y searches are happening across the whole input; how do i start the /Y/ search at the line where /X/ was found?