BEGIN {label = 0; printf("%d\t%d\t%d\t%d\n", 100, 115, 0, 1)} /1;/ {printf ("%s\t%s\t%s\n", $2, $3, label); label = 0 } /2;/ {label = $4 }