Awk to match a pattern and perform a search after the first pattern

view story

http://www.unix.com – Hello Guyz I have been following this forum for a while and the solutions provided are super useful. I currently have a scenario where i need to search for a pattern and start searching by keeping the first pattern as a baseline ABC DEF LMN EFG HIJ LMN OPQ In the above text i need to search for EFG first and then keeping EFG as the starting point, i need to search for LMN. I should not get the LMN before EFG. Any help would be greatly appreciated!! Thanks, Rick.. (HowTos)