BEGIN { h1Index = 0 # When this loop finishes, $0 will have the first line containing an h1 header # tag, and h1Index will have it's starting position while (h1Index == 0 && getline < ARGV[1]) h1Index = index($0, "