asa, fpr - interpret carriage-control characters
asa [file ...]
fpr [file ...]
The asa utility reads files sequentially, mapping FORTRAN
carriage-control
characters to line-printer control sequences, and
writes them to the
standard output.
The first character of each line is interpreted as a carriage-control
character. Additionally, the following characters are interpreted as
shown:
<space>
Output the rest of the line without change.
0 Output a newline (`0) character before printing the
rest of the
line.
1 Output a <formfeed> character before printing the
rest of the
line.
+ The trailing newline (`0) of the previous line is
replaced by a ') before printing the rest of the
carriage-return (`
line.
Lines beginning with characters other than the above are
treated as if
they begin with a space (` .')
The asa utility exits 0 on success or >0 if an error occurred.
To view a file containing the output of a FORTRAN program:
$ asa file
To format the output of a FORTRAN program and redirect it to
a lineprinter.
$ a.out | asa | lpr
f77(1)
The asa utility conforms to IEEE Std 1003.2-1992
(``POSIX.2''). The fpr
utility is deprecated and its use should be restricted.
J.T. Conklin, Winning Strategies, Inc.
OpenBSD 3.6 September 23, 1993
[ Back ] |