AWKUNLEX 1 "29 March 1999" "Version 1.00"

Table of contents


NAME

awkunlex - recombine an awk lexical token stream into an awk program

SYNOPSIS

awkunlex [ -? ] [ -f file ] [ -h ] [ -v ] [ file(s) ] > awk-program-file
or
awkunlex [ --? ] [ --file file ] [ --help ] [ --version ] [ file(s) ] > awk-program-file

DESCRIPTION

awkunlex converts a lexical token stream from awklex(1) back into an awk(1) program, substantially preserving the original text layout.

Input comes from the file(s) specified on the command line, or the file in the -f option, or else, if no file is given, from stdin. Output is written to stdout.


OPTIONS

awkunlex accepts two styles of options: the old, concise, but possibly, inscrutable, UNIX hyphen-letter pairs, and longer GNU/POSIX-style options beginning with two hyphens. The GNU/POSIX-style options can be always abbreviated to any unique leading prefix, and the two styles can be used interchangeably.
-f awk-program-file
--file awk-program-file
Specify the name of the awk(1) program file.

Multiple -f options can be used, if required; their files are then treated as a logical concatenation, in the order that they were specified.

The filename can be a hyphen, -, meaning that input should be taken from stdin, allowing awkunlex to be used in the middle of a command pipeline.

This option is included solely for similarity to the command line expected by awk(1); for awkunlex, the filenames alone are sufficient.

-?
-h
--?
--help
Print a brief help message, and exit immediately with a success status code.
-v
--version
Print the program version number, and exit immediately with a success status code.

FILES

/usr/local/share/lib/awkpretty/awkpretty-1.00/awkpretty.awk
Prettyprinter backend awk(1) program invoked by awkunlex to filter the output of awklex(1), and produce a prettyprinted awk(1) program on stdout.

SEE ALSO

awk(1), awkpretty(1), awklex(1), gawk(1), mawk(1), nawk(1).

AUTHOR

Nelson H. F. Beebe
Center for Scientific Computing
University of Utah
Department of Mathematics, 322 INSCC
155 S 1400 E RM 233
Salt Lake City, UT 84112-0090
USA
Email: beebe@math.utah.edu, beebe@acm.org, beebe@ieee.org
WWW URL: http://www.math.utah.edu/~beebe
Telephone: +1 801 581 5254
FAX: +1 801 585 1640, +1 801 581 4148