basic scripts written in awk