adding the main shell script and the awk script it uses