gawk: Running gawk

1 
1 1.1 How to Run 'awk' Programs
1 =============================
1 
1 There are several ways to run an 'awk' program.  If the program is
1 short, it is easiest to include it in the command that runs 'awk', like
1 this:
1 
1      awk 'PROGRAM' INPUT-FILE1 INPUT-FILE2 ...
1 
1    When the program is long, it is usually more convenient to put it in
1 a file and run it with a command like this:
1 
1      awk -f PROGRAM-FILE INPUT-FILE1 INPUT-FILE2 ...
1 
1    This minor node discusses both mechanisms, along with several
1 variations of each.
1 

Menu