BEGIN { l=0; } { if (!(substr($0, 0, 1) == "#")) { l++; if (l>2) print $1, $3; } }