Options

 < Day Day Up > 

field-separator fs

F fs

 

Uses fs as the value of the input field separator (FS variable).


file program-file

 

f program-file

  

Reads the gawk program from the file named program-file instead of the command line. You can specify this option more than once on a command line.

help

W help

  

Summarizes how to use gawk.

lint

W lint

  

Warns about constructs that may not be correct or portable.

posix

W posix

  

Runs a POSIX-compliant version of gawk. This option introduces some restrictions; see the gawk man page for details.

traditional

W traditional

  

Ignores the new GNU features in a gawk program, making the program conform to UNIX awk.


assign var =value

v var =value

 

Assigns value to the variable var. The assignment takes place prior to execution of the gawk program and is available within the BEGIN pattern (page 531). You can specify this option more than once on a command line.


     < Day Day Up > 


    A Practical Guide to LinuxR Commands, Editors, and Shell Programming
    A Practical Guide to LinuxR Commands, Editors, and Shell Programming
    ISBN: 131478230
    EAN: N/A
    Year: 2005
    Pages: 213

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net