User Guide : Using Content Extraction Language : Language Syntax and Examples : END { statements }
 
Share this page             
END { statements }
End is one of the special patterns. The actions associated with the end pattern get executed after the last line of the input file is read. For more information, “CXL Patterns
Example
end { if( last_tag != "EOF" ) accept array[ctr + 1];
# Print last record