User Guide : Using Content Extraction Language : Language Syntax and Examples : BEGIN { statements }
 
Share this page             
BEGIN { statements }
A special pattern whose associated actions get executed before the first line of the input file is read. For more information, see “Patterns”.
Example
BEGIN { IFS = " "; ctr = 0; total = "0"; }