What is awk, and how do I use it?
At Indiana University, you can use
awk on all the
Unix-based central systems. Although
awk is a complete
pattern scanning and processing language, it is most commonly used as
a Unix command-line filter to reformat the output of other
commands. For example, to print only the second and sixth fields of
date command (the month and year) with a space
separating them, at the Unix prompt, you would enter:
To read the online manual (the man page) for
at the Unix prompt, enter:
Also, consult the newsgroup
gawk is a version of
awk produced by the
GNU Project. At IU, it is available on Quarry in
/usr/bin/gawk directory, and on the Research
Database Complex (RDC) in the
For information about
gawk, at the Unix prompt, enter:
At Indiana University, for personal or departmental Linux or Unix systems support, see At IU, how do I get support for Linux or Unix?
Last modified on June 30, 2009.