Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 46 lines (31 sloc) 1.673 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
This is the AWK cheat sheet. AWK is a fun language to know. It allows you to
do various string processing tasks on Unix quickly. I created this cheat sheet
when I was learning AWK some years ago.

I explain a lot more about how and why I created it in my article "Awk, Nawk
and GNU Awk Cheat Sheet". This article can be read here:

    http://www.catonmat.net/blog/awk-nawk-and-gawk-cheat-sheet/

------------------------------------------------------------------------------

This cheat sheet was created by Peteris Krumins (peter@catonmat.net).
His blog is at http://www.catonmat.net -- good coders code, great reuse.

The cheat sheet is released under GNU Free Documentation License.

------------------------------------------------------------------------------

The Awk cheat sheet contains the following topics:

    * Predefined Awk variable summary for Awk, Nawk and Gawk.
    * Gnu Awk's command line summary.
    * I/O statements.
    * Numeric functions.
    * Bit manipulation functions.
    * I18N (internationalization) functions.
    * String functions,
    * Time functions.


It is available in .pdf, .txt (ascii) and .doc (microsoft word)
formats. The latest versions can always be found at:

  .txt: http://www.catonmat.net/download/awk.cheat.sheet.txt
  .pdf: http://www.catonmat.net/download/awk.cheat.sheet.pdf
  .doc: http://www.catonmat.net/download/awk.cheat.sheet.doc

I'm sorry that I used Microsoft Word to create it, but I was not proficient in
LaTeX back then.

------------------------------------------------------------------------------

Sincerely,
Peteris Krumins
http://www.catonmat.net

Something went wrong with that request. Please try again.