Can anyone give me the code for awk scripting?
That statement doesnt make much sense. Do you want advice on how to program using awk or would you like the source code to build awk ?
Get the book, The AWK Programming Language by Aho, Kernighan and Weinberger. (They wrote the language; its name is their initials.)