little awk question
"Yuval Ben-Ari" <[email protected]> Sun, 30 Jul 2006 12:45:43 +0200
| Newsgroups | gmane.network.toolmakers |
|---|---|
| Message-ID | <58D14E53A4F69C4EAF4D29171C447CC491FA98@NTX-CL.forest.netvision.net.il> |
Hi, does anyone knows how in awk I can refer to a field that is after a certain pattern ? I don't know where the pattern will be so can't use $i, it needs to be relative to the pattern I matched. to be more specific: / .* route-map/ now I want the next field after "route-map" NF is also not good, because there can be more stuff after the route-map I know that perl regexp allows back reference to groups which could have satisfy this scenario Thanks