Go to the first, previous, next, last section, table of contents.


How to Run @command{awk} Programs

There are several ways to run an @command{awk} program. If the program is short, it is easiest to include it in the command that runs @command{awk}, like this:

awk 'program' input-file1 input-file2 ...

When the program is long, it is usually more convenient to put it in a file and run it with a command like this:

awk -f program-file input-file1 input-file2 ...

This minor node discusses both mechanisms, along with several variations of each.


Go to the first, previous, next, last section, table of contents.