Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Awk > Awk Regex Synta...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 2103 of 2317
Post > Topic >>

Awk Regex Syntax / Flavor?

by Brando <bwnichols@[EMAIL PROTECTED] > Dec 19, 2007 at 07:57 AM

Hello All,

Another newbie question here -- the answer to my previous one included
this this regex match string:

/TOTAL    WINDOWS/{go=1}/^[[:digit:][:space:]]+$/


At least, that's what it essentially looks like to me...except for
the /{go=1}/ subclause, which I'm not familiar with.  What is it
called and its purpose, and is this an Awk-specific regex feature?  No
need for a detailed explanation, I can look up in the Awk docs if I
know what its called and/or have an idea of its general purpose.

PS:  the  complete statement is as follows...

/TOTAL    WINDOWS/{go=1}/^[[:digit:][:space:]]+$/\
&&go{Doors+=$3;go=0}END{print "Door Count = " Doors}


Thanks
Brando
 




 5 Posts in Topic:
Awk Regex Syntax / Flavor?
Brando <bwnichols@[EMA  2007-12-19 07:57:08 
Re: Awk Regex Syntax / Flavor?
Janis <janis_papanagno  2007-12-19 08:19:08 
Re: Awk Regex Syntax / Flavor?
gazelle@[EMAIL PROTECTED]  2007-12-19 16:22:02 
Re: Awk Regex Syntax / Flavor?
Ed Morton <morton@[EMA  2007-12-19 10:37:04 
Re: Awk Regex Syntax / Flavor?
Grant <g_r_a_n_t_@[EMA  2007-12-20 06:34:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 15:14:40 CDT 2008.