UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: native2asciiChapter 2
Unix Commands
Next: Reference: neqn
 

nawk

nawk [options] ['program'] [files] [variable=value]

New version of awk, with additional capabilities. nawk is a pattern-matching language useful for manipulating data. See Chapter 11 for more information on nawk.

Options

-f file

Read program instructions from file instead of supplying program instructions on command line. This option may be specified multiple times; each file is concatenated with the others to make up the program source code.

-F regexp

Separate fields using regular expression regexp.

-v variable=value

Assign value to variable before executing 'program'.

variable=value

Assign value to variable. When specified intermixed with files, the assignment occurs at that point in the processing.


Previous: Reference: native2asciiUNIX in a Nutshell: System V EditionNext: Reference: neqn
Reference: native2asciiBook IndexReference: neqn

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System