Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page



 

Linux / Unix a2p command

Quick links

About a2p
Syntax
Examples
Related commands
Unix main page

About a2p

The a2p command takes an awk script specified on the command line and produces a comparable perl script on standard output.

Syntax

a2p [options] [filename]

-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. For now, the only difference is that old awk always has a line loop, even if there are no line actions, whereas new awk does not.

Examples

a2p myfile - would convert the file myfile.

Related commands

awk
perl
s2p

 

Index

Category:
Linux / Unix

Companies:
Click here

Related Pages:

 

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope