Afficher un message
Vieux 25/08/2006, 20h42   #2
Radoulov, Dimitre
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Awk question: pattern match


"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



  Réponse avec citation
 
Page generated in 0,04386 seconds with 9 queries