On Thu, 2009-08-06 at 17:45 +0200, mru wrote: > + awk "/$1=/{ match(\$0, /$1=(\\w+)/, a);print a[1];exit }" $TMPE This fails with mawk. Looks like 3-argument match() is not in POSIX.