Simplifying scripts and using awk/gawk more explicitly.