=== axisofentropy is now known as adam_vollrath | ||
=== bac` is now known as bac | ||
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:15 |
BugeyeD | currently i have something like this: BEGIN {} /X/ { myx = $2 } /Y/ { myy = $5 } END { print myx, myy } | 18:19 |
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? | 18:20 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!