AWK - Sample Program in UNIX

To Execute as a program

Step 1 : Type the execution part of AWK program in a separate file
For e.g save it as test.awk
{
    print $0
}


Step 2 : Execute the program with AWK -f option
awk -f test.awk hello.c