"James" <hslee911@yahoo.com> wrote in message
news:1156530103.897045.307360@i42g2000cwa.googlegr oups.com...
> How does awk match a pattern composed of variables and strings?
> For example,
>
> VAR=hello
> awk '/VAR world/' VAR=$VAR
> does not work.
awk '/'"$VAR"' world/'
See
http://www.faqs.org/faqs/unix-faq/fa...ection-12.html .
Regards
Dimitre