NAME 

a2p - Awk to Perl translator

SYNOPSIS 

a2p [options] [filename]

DESCRIPTION 

A2p takes an awk script specified on the command line (or from standard input) and produces a comparable perl script on the standard output.

OPTIONS

Options include:
-D<number>
sets debugging flags.
-F<character>
tells a2p that this awk script is always invoked with this -F switch.
-n<fieldlist>
specifies the names of the input fields if input does not have to be split into an array. If you were translating an awk script that processes the password file, you might say:
        a2p -7 -nlogin.password.uid.gid.gcos.shell.home

Any delimiter can be used to separate the field names.

-<number>
causes a2p to assume that input will always have that many fields.
-o
tells a2p to use old awk behavior. The only current differences are:
*
Old awk always has a line loop, even if there are no line actions, whereas new awk does not.
*
In old awk, sprintf is extremely greedy about its arguments. For example, given the statement
        print sprintf(some_args), extra_args;

old awk considers extra_args to be arguments to "sprintf"; new awk considers them arguments to "print".