awk scripting explained with practical examples