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JqmaK= +l'_S6jFIlh m{́g^meyW~>agUM1n?-_ͭTr9-.9ѲU.XkUHNf2B ԝ̫Q,3Z#E}0)^𡞅B/Yįs`IvXPF1 ̵ӍUyytUZ]ЍMvOq~.]N~F\[" )-YnlP"T_l[Tu3]‚Y8.,=ʎ}%t,*: ?۴,~"#P9#)\YIMZr/snBec!KMg"pQH u)Q_s@f]_+!Q/'D8!WaMq[*yJ NPa.M+ToUNl |iӅUu6j @$)i6xuoD,VP {t!:] S>UF\(kuy_!mCSy QVV0b?(Z-699aDeUPiw!WD>7Wy9`Eh*elݦwW5O':Wt*ߍtGN ޝ3scnr/VhJ\33z񅾉o{=7^dJ*by!V _QǤXmh+Ϝ½P\rfʋJ>CJƊTQ2ׁkURZ8fJ/A{whпnRj]A: 0P=_i1;bW0\%ᗓ~\8 _~9]%]>~[Z8\u8 сKՂzY`Nlƍ2y=dC"lZS mgYa :s/VQwk@)*:f]=}x_w D n e8뤕>9Dz.mdZ TIjN 7ixpg*WvvIG)C|,߈yB~~A;AEI4PN.K\ƦWO0`E;G BjUBM/cڹG&7 L ʽv%/CmWC >1hIAq%-+5Y7 v g争ɐ c~$I}I93;mѫƷ$<:h,g_pI:dG/Cm}V5=o'sz>IID~Ob{a#"fc0V`j&S{v{"Dialogs", {"Frame", {"-11","0","0","0","400","0","0","0","204","1","2","1","34","MS Sans Serif","480","75"," ","","","16777216","","1","1","6","25","-1","0","16777216", {"0", {"","1"}},"1","1"}}, {"Controls", {"","BMASKED","1350565888","181","57","35","13","0","0","4152","","()","","-1","N","1","0","0","1","32","","","","0","-11","0","0","0","0","0","0","0","0","0","0","0","0","MS Sans Serif","-1","-1","0","","{""0"",""0""}"}, {".","STATIC","1342177794","156","59","18","10","0","0","4153","","","_","-1","U","0","0","0","0","192","",""," ","0","-11","0","0","0","400","0","0","0","204","1","2","1","34","MS Sans Serif","-1","-1","0","","{""0"",""0""}"}, {"","COMBOBOX","1352663107","69","57","84","53","0","0","4154","","(.(.()))","","-1","U","0","0","0","0","16777216","","","","0","-11","0","0","0","0","0","0","0","0","0","0","0","0","MS Sans Serif","-1","-1","0","","{""0"",""0""}"}, {"..","STATIC","1342177792","40","59","26","10","0","0","4155","","","","-1","U","0","0","0","0","192","","","","0","-11","0","0","0","400","0","0","0","204","1","2","1","34","MS Sans Serif","-1","-1","0","","{""0"",""0""}"}, {"","BMASKED","1350565888","248","36","84","13","0","0","4156","","","","-1","D","0","0","0","0","32","","","","0","-11","0","0","0","0","0","0","0","0","0","0","0","0","MS Sans Serif","-1","-1","0","","{""0"",""0""}"}, {" :","STATIC","1342177280","202","38","42","11","0","0","4157","","","","-1","U","0","0","0","0","192","","","","0","-11","0","0","0","400","0","0","0","204","1","2","1","34","MS Sans Serif","-1","-1","0","","{""0"",""0""}"}, {">","BUTTON","1342177291","172","35","11","15","0","0","4158","","(1)","","-1","U","0","0","0","0","1024","","","","0","-11","0","0","0","0","0","0","0","0","0","0","0","0","MS Sans Serif","-1","-1","0","","{""0"",""0""}"}, {"","STATIC","1342177793","87","39","81","8","0","0","4159","","(1, 2)","","-1","U","0","0","0","0","64","","","","0","-11","0","0","0","400","0","0","0","204","1","2","1","34","MS Sans Serif","8388608","-1","0","","{""0"",""0""}"}, {"<","BUTTON","1342177291","74","35","11","15","0","0","4160","","(-1)","","-1","U","0","0","0","0","1024","","","","0","-11","0","0","0","0","0","0","0","0","0","0","0","0","MS Sans Serif","-1","-1","0","","{""0"",""0""}"}, {"","1CGROUPBOX","1342177287","70","28","117","25","0","0","4161","","","","-1","U","0","0","0","0","0","","","","0","-11","0","0","0","0","0","0","0","0","0","0","0","0","MS Sans Serif","-1","-1","0","","{""0"",""0""}"}, {" :","STATIC","1342177280","10","39","56","8","0","0","4162","","","","-1","U","0","0","0","0","192","","","","0","-11","0","0","0","400","0","0","0","204","1","2","1","34","MS Sans Serif","-1","-1","0","","{""0"",""0""}"}, {"","1CEDIT","1350565888","367","17","105","13","0","0","4163","","(1)","","-1","U","0","0","0","0","1048576","","","","0","-11","0","0","0","0","0","0","0","0","0","0","0","0","MS Sans Serif","-1","-1","0","","{""0"",""0""}"}, {"","BUTTON","1342177291","229","17","54","13","0","0","4164","","()","","-1","U","0","0","0","0","0",""," : "" "" - ; "" "" - ; "" "" - ."," ","0","-11","0","0","0","0","0","0","0","0","0","0","0","0","MS Sans Serif","-1","-1","0","","{""3"",""119""}"}, {"","BUTTON","1342177291","173","17","54","13","0","0","4165","","(1)","","-1","U","0","0","0","0","20",""," ","","0","-11","0","0","0","0","0","0","0","0","0","0","0","0","MS Sans Serif","-1","-1","0","","{""0"",""0""}"}, {"","BUTTON","1342177291","117","17","54","13","0","0","4166","","(1)","","-1","U","0","0","0","0","16",""," ","","0","-11","0","0","0","0","0","0","0","0","0","0","0","0","MS Sans Serif","-1","-1","0","","{""0"",""0""}"}, {"","BUTTON","1342177291","61","17","54","13","0","0","4167","","(0) ","","-1","U","0","0","0","0","16",""," ","","0","-11","0","0","0","0","0","0","0","0","0","0","0","0","MS Sans Serif","-1","-1","0","","{""0"",""0""}"}, {"","BUTTON","1342177291","5","17","54","13","0","0","4168","","#","OK","-1","U","0","0","0","0","16","","","","0","-11","0","0","0","0","0","0","0","0","0","0","0","0","MS Sans Serif","-1","-1","0","","{""0"",""0""}"}}, {"Cnt_Ver","10001"}} "8","8","25","0","0","25","14","2","14","2","14","2","14","3","0","0","10","10","0","0","0","0","0","0","0","0","1","1","1","0","0","0","0","0","0","0","1","0","1","0","0","0","0","1", {},"1","1", {"AccParams"}, {"Plans"}, {"ProvParams"}, {"OperParams"}, {"Form"}, {"Form"}, {"Form"}, {"SbKind"}, {"TypOpersDef", {"3","","",""}}, {"CorrProvsDef", {"4","","",""}}, {"ProvHardFldDef", {"5","","","","P","0","0","0","0","0","0"}, {"6","","","","U","0","0","0","0","0","0"}}, {"OperJournal", {"7","","","","-1","0","9","9","1", {"0","","","", {"Refers"}}, {"JournalFld"}, {"Form", {"9","","",""}}}}}}, {"CRC","737935876"}} >
# Count blank lines.
/^$/ { 
	print x += 1 
     }

Although we didn't initialize the value of x, we can safely assume that its value is 0 up until the first blank line is encountered. The expression "x += 1" is evaluated each time a blank line is matched and the value of x is incremented by 1. The print statement prints the value returned by the expression. Because we execute the print statement for every blank line, we get a running count of blank lines.

There are different ways to write expressions, some more terse than others. The expression "x += 1" is more concise than the following equivalent expression:

x = x + 1

But neither of these expressions is as terse as the following expression:

++x

"++" is the increment operator. ("--" is the decrement operator.) Each time the expression is evaluated the value of the variable is incremented by one. The increment and decrement operators can appear on either side of the operand, as prefix or postfix operators. The position has a different effect. "1", 2002 I 2002 1: 7.7 ! 426 ( ) " " . 4.2. , ! : - 1: 7.7 ; - 1: 7.7 ; - 1: 7.7 - 1:. . 7.7 - 1: 7.7 SQL. . - 1: 7.7 . - 1: 7.7 ( ). - 1: 7.7 SQL. - 1: 7.7 + MS Windows 2000 + MS SQL Server 7.0. (5 ). - 1: 7.7 + MS Windows 2000 + MS SQL Server 7.0. (5 ). . - 1: 7.7 + MS NT Server 4.0 + MS SQL Server 7.0. (5 ). " + + + + " - 1: 7.7 + MS NT Server 4.0 + MS SQL Server 7.0. (5 ). . - 1: 7.7 + MS SQL Server 7.0 (5 ). - 1: 7.7 + MS SQL Server 7.0. . . (5 ) D - 1C: 7.7 CD ( 18) - 1C: 7.7 ( 18) - 1: 7.7. " + + ", . 2.5 , : - . , . 4.2 - " + + + + " . 4.0 - " + + ", . 2.5 ( Rp02q1.exe) . " ". : - " " "" - "" "" ; - ""; - "OK". " " "". , ( Rp02q1.exe). -. , . , . . . , . , , . , . , , .