1 2 3
BEGIN { print "script: BEGIN test.awk"; script_state = "begin" } { print "script: input"; script_state = script_state "+input" } END { print "script: END test.awk"; script_state = script_state "+end" }