Another type: ASA carriage control. On most Unix systems: "man asa".
asa -- Interpret ASA/FORTRAN carriage control
asa [file ...]
Historically, printouts created by programs use the first character of
each line to control the spacing between that line and the previous one.
For example, if the first character is a space, the rest of that line
immediately follows the previous line; if it is a 1, that line should
begin on a new page, and so on.
asa reads input in this format and writes it out in a normal text format,
using newlines, formfeeds, and carriage returns to achieve the same
effects as the carriage control characters.
If you specify files on the command line, asa reads input from these
files; otherwise, it reads the standard input (stdin). asa writes output
to the standard output (stdout).
It does not copy newline characters in the input to the output. Instead,
it uses the first character of each line to determine how to print the
rest of the line. asa interprets the first character as follows:
Space Outputs the rest of the line without change.
0 Outputs a newline character before printing line.
1 Outputs a formfeed (start a new page) sequence before printing
+ Outputs a carriage return sequence so that line is output over
previous line. If + starts the first line, it's treated as a
asa uses the following localization environment variables:
See Appendix E, "Localization" in topic D.0 for more information.
0 Successful completion
1 Failure due to any of the following:
Write error on stdout
Inability to open the input file
2 Unknown command-line option
POSIX.2, X/Open Portability Guide, UNIX System V.
This archive was generated by hypermail 2b29 : Fri Mar 09 2001 - 11:59:43 EST