echo xx y11y rrr | awk \'{ if ($2 ~/y[1-5]{2}y/) print $3}\'
Why I cannot get any output?
Thank you.
On my machine:
$ echo xx y11y rrr | awk '{ if ($2 ~/y[1-5]{2}y/) print $3}' rrr
Was this what you wanted? I'm using GNU awk 4.0.0 in Cygwin on Windows XP.