asa - interpret carriage-control characters
asa [file ...]
The asa utility will write its input files to standard output, mapping carriage-control characters from the text files to line-printer control sequences in an implementation-dependent manner.
The first character of every line will be removed from the input, and the following actions will be performed:
If the character removed is:
- The rest of the line will be output without change.
- A newline character will be output, then the rest of the input line.
- One or more implementation-dependent characters that causes an advance to the next page will be output, followed by the rest of the input line.
- The newline character of the previous line will be replaced with one or more implementation-dependent characters that causes printing to return to column position 1, followed by the rest of the input line. If the "+" is the first character in the input, it will have the same effect as the space character.
The action of the asa utility is unspecified upon encountering any character other than those listed above as the first character in a line.
- A pathname of a text file used for input. If no file operands are specified, the standard input will be used.
The standard input will be used only if no file operands are specified. See the INPUT FILES section.
The input files must be text files.
The following environment variables affect the execution of asa:
- Provide a default value for the internationalisation variables that are unset or null. If LANG is unset or null, the corresponding value from the implementation-dependent default locale will be used. If any of the internationalisation variables contains an invalid setting, the utility will behave as if none of the variables had been defined.
- If set to a non-empty string value, override the values of all the other internationalisation variables.
- Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single- as opposed to multi-byte characters in arguments and input files).
- Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error.
- Determine the location of message catalogues for the processing of LC_MESSAGES .
The standard output will be the text from the input file modified as described in the DESCRIPTION section.
The following exit values are returned:
- All input files were output successfully.
- An error occurred.
The following command:permits the viewing of file (created by a program using FORTRAN-style carriage control characters) on a terminal.
The following command:formats the FORTRAN output of a.out and directs it to the printer.
a.out | asa | lp