AWK - One liner as Command in UNIX

AWK program can be executed as command line or as program. If the awk command has only one line, it is executed command line and it is known as AWK one liners.

Following awk one liner duplicates the lines in a file

awk '1;{print $0}' hello.c