Comments and Annotations

The awk utility disregards anything on a program line following a hash sign (#). You can document an awk program by preceding comments with this symbol.

For example,

# THIS AWK PROGRAM IS EQUIVILENT TO THE UNIX COMMAND "cat" (ALBEIT SLOWER!!)
{ print }

Awk will skip the first line of the above program.

[Help] [Provide some feedback] [Go to Previous Page]