Re: Awk question: pattern match
On 25 Aug 2006 11:21:44 -0700, James
<hslee911@yahoo.com> wrote:
> How does awk match a pattern composed of variables and strings?
> For example,
>
> VAR=hello
> awk '/VAR world/' VAR=$VAR
> does not work.
>
awk '$0~VAR " world"' VAR=$VAR
--
TAPPING? You POLITICIANS! Don't you realize that the END of the "Wash
Cycle" is a TREASURED MOMENT for most people?!
|