|ASA(1)||FreeBSD General Commands Manual||ASA(1)|
NAMEasa — interpret carriage-control characters
|asa||[ file ...]|
DESCRIPTIONThe 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. The following characters are interpreted as follows:
- Output the rest of the line without change.
- Output a <newline> character before printing the rest of the line.
- Output a <formfeed> character before printing the rest of the line.
- The trailing <newline> of the previous line is replaced by a <carriage-return> before printing the rest of the line.
Lines beginning with characters other than the above are treated as if they begin with <space>.
EXIT STATUSThe asa utility exits 0 on success, and >0 if an error occurs.
EXAMPLESTo view a file containing the output of a FORTRAN program:
To format the output of a FORTRAN program and redirect it to a line-printer:
a.out | asa | lpr
STANDARDSThe asa utility conforms to IEEE Std 1003.1-2001 (“POSIX.1”).
AUTHORS, Winning Strategies, Inc.
|May 9, 2002||FreeBSD|