The awk utility shall conform to the Base Definitions volume of
POSIX.1‐2017, Section 12.2, Utility Syntax Guidelines.
The following options shall be supported:
-F
sepstring
Define the input field separator. This option shall be
equivalent to:
-v FS=sepstring
except that if -F
sepstring and -v
FS=sepstring are
both used, it is unspecified whether the FS
assignment
resulting from -F
sepstring is processed in command
line order or is processed after the last -v
FS=sepstring. See the description of the FS
built-in
variable, and how it is used, in the EXTENDED
DESCRIPTION section.
-f
progfile
Specify the pathname of the file progfile containing an
awk program. A pathname of '-'
shall denote the
standard input. If multiple instances of this option
are specified, the concatenation of the files specified
as progfile in the order specified shall be the awk
program. The awk program can alternatively be specified
in the command line as a single argument.
-v
assignment
The application shall ensure that the assignment
argument is in the same form as an assignment operand.
The specified variable assignment shall occur prior to
executing the awk program, including the actions
associated with BEGIN
patterns (if any). Multiple
occurrences of this option can be specified.