execute

Function execute 

Source
pub fn execute(script: &str, input: Vec<String>) -> Vec<String>
Expand description

Execute an AWK script against the given input lines and return the output.

script is the raw AWK program text (e.g., {print}) and input contains the lines to process. The script is lexed, parsed, and then evaluated; the resulting output lines are returned in order.