Skip to main content


developerWorks  >  AIX and UNIX  >

Get started with GAWK: AWK language fundamentals

developerWorks

Level: Intermediate

Michael Stutz (stutz@dsl.org), Author, Consultant

19 Sep 2006

Register now or sign in using your IBM ID and password.

Discover the basic concepts of the AWK text-processing and pattern-scanning language. This tutorial gets you started programming in AWK: You'll learn how AWK reads and sorts its input data, run AWK programs, manipulate data, and perform complex pattern matching. When you're finished, you'll also understand GNU AWK (GAWK).

In this tutorial

  • Get ready to GAWK

  • Understanding records, fields, and rules

  • Running GAWK programs

  • Manipulating records and fields

  • GAWK pattern matching

Prerequisites

This tutorial has no particular prerequisites, although you should be familiar with using a UNIX command-line shell. Some familiarity with the constructs of the C programming language is helpful, but it is not required.


System requirements

You must have a working copy of GAWK installed on your system, preferably Version 3.0 or later. GAWK is easily obtainable in both source and binary packages. If you're installing GAWK from source, consult the README file in the GAWK source distribution, which lists any additional software requirements for successful compilation and installation.



Duration

2 hours


Formats

html, pdf


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed


My developerWorks needs you!

Connect to your technical community