awk 'NR == 1 {next} /^\#complete/ {print} /^[^#]/ {exit}' $filename