Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Get started with GAWK: AWK language fundamentals

Begin learning AWK with the open source GAWK implementation

Michael Stutz, Author, Freelance Developer
Michael Stutz is author of The Linux Cookbook , which he also designed and typeset using only open source software. His research interests include digital publishing and the future of the book. He has used various UNIX operating systems for 20 years. You can reach him at stutz@dsl.org.

Summary:  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).

Date:  19 Sep 2006
Level:  Intermediate PDF:  A4 and Letter (109 KB | 24 pages)Get Adobe® Reader®

Activity:  29304 views
Comments:  

Wrap-up

In this tutorial, you've begun to use GAWK, the GNU Project's open source implementation of the AWK programming language. You've learned the rudiments of the AWK programming language -- including how to run and structure programs and basic operations, such as field and record manipulation and pattern matching. There's a lot more to learn -- AWK is truly one of the great UNIX power tools -- but even at your first exposure, you've been able to feel the power of the AWK language as a tool for text manipulation.

7 of 9 | Previous | Next

Comments



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=AIX and UNIX
ArticleID=160836
TutorialTitle=Get started with GAWK: AWK language fundamentals
publish-date=09192006
author1-email=stutz@dsl.org
author1-email-cc=