GNU Info

Info Node: (gawk.info)Running Examples

(gawk.info)Running Examples


Next: Clones Prev: Sample Programs Up: Sample Programs
Enter node , (file) or (file)node

Running the Example Programs
============================

   To run a given program, you would typically do something like this:

     awk -f PROGRAM -- OPTIONS FILES

Here, PROGRAM is the name of the `awk' program (such as `cut.awk'),
OPTIONS are any command-line options for the program that start with a
`-', and FILES are the actual data files.

   If your system supports the `#!' executable interpreter mechanism
(Note: Executable `awk' Programs.), you can instead
run your program directly:

     cut.awk -c1-8 myfiles > results

   If your `awk' is not `gawk', you may instead need to use this:

     cut.awk -- -c1-8 myfiles > results


automatically generated by info2www version 1.2.2.9