how to write a script in awk