User Guide : Using Content Extraction Language : Language Syntax and Examples : split ( var, array, fs );
 
Share this page                  
split ( var, array, fs );
This built-in function splits the string value of the expression or variable var, and puts the result into the array variable array (i.e., array[0], array[1], etc.). fs is a string containing the field separator variables. If fs is omitted, i.e., split(var, array), then IFS is used for fs. The parameter var is a string variable or expression, array is an array, and fs is an optional string constant.
Example
split($0, elem, "<>"); tag = elem[0]; text = elem[1]; #
Separate tags from their text