manpagez: man pages & more
info gawk
Home | html | info | man

gawk: Running Examples

 11.1 Running the Example Programs
 To run a given program, you would typically do something like this:
 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
 (⇒Executable Scripts), 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
© 2000-2018
Individual documents may contain additional copyright information.