Afficher un message
Vieux 25/08/2006, 22h38   #3
Bill Marcum
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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?!
  Réponse avec citation
 
Page generated in 0,05050 seconds with 9 queries