User Guide : Using Content Extraction Language : Language Syntax and Examples : clearvars;
Share this page             
A statement that sets variables to their appropriate initial values. Numeric variables are set to 0 and string variables are set to empty string. Built-in variables are not changed.
# initializes all variables each time the input line contains the string "Company:"
$0(3 10) ~ /Company:/ { clearvars; coname = trim($0(12 80)); }