Awk script that finds the band gap of a calculation