BEGIN { FS="[ =%]+" } { if ( $0 ~ "threads" ) { threads=$5 } else if ( $0 ~ "Kiter" ) { kiters=$2 } } END { print threads " " kiters }