#calulate number of good and bad timeouts of stdout print of ns BEGIN {B=0; G=0; first=1} /bad/ {B++} /unavoidable/ {G++} /new set/ {printf B " " G "\n" ; B=0; G=0 } END { }