Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

asa(1) [osf1 man page]

asa(1)							      General Commands Manual							    asa(1)

NAME
asa - Interprets carriage-control characters SYNOPSIS
asa [file...] STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: asa: XCU5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. OPTIONS
None OPERANDS
The pathname of a file to be read. If this parameter is omitted, standard input is read. DESCRIPTION
The asa command writes its input files to standard output, mapping carriage-control characters from the text files to line-printer control sequences. The first character of every input line is removed and, depending on the character removed, an action performed on that character and the rest of the line. If the character removed is: The rest of the line is output without change. A newline character is output, followed by the rest of the input line. A form-feed character is output, followed by the rest of the input line. The newline character of the previ- ous line is replaced with a carriage-return character, which is output, followed by the rest of the input line. If + is the first character in the input, + has the same effect as the space character. [Tru64 UNIX] The character is output, followed by the rest of the input line. EXIT STATUS
The following exit values are returned: Successful completion. An error occurred. EXAMPLES
To view a file (created by a program using FORTRAN-style carriage control characters) on a terminal: asa file To format the FORTRAN output of a.out and direct it to the printer: a.out | asa | lp ENVIRONMENT VARIABLES
The following environment variables affect the execution of asa: Provides a default value for the internationalization variables that are unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization vari- ables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value, overrides the values of all the other internationalization variables. Determines the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multi-byte characters in arguments and input files). Determines the locale for the format and contents of diagnostic messages written to standard error. Determines the location of message catalogues for the processing of LC_MESSAGES. SEE ALSO
Commands: lp(1) Standards: standards(5) asa(1)

Check Out this Related Man Page

asa(1)							      General Commands Manual							    asa(1)

NAME
asa - interpret ASA carriage control characters SYNOPSIS
[files] DESCRIPTION
interprets the output of FORTRAN programs that utilize ASA carriage control characters. It processes either the files whose names are given as arguments, or the standard input if is specified or if no file names are given. The first character of each line is assumed to be a control character. The following control characters are interpreted as indicated: (blank) Output a single new-line character before printing. (space) (UNIX Standard only, see standards(5)) The rest of the line will be output without change. A <newline> shall be output, then the rest of the input line. Output a new-page character before printing. Overprint previous line. (UNIX Standard only, see standards(5)) The <newline> of the previous line shall be replaced with one or more implementation-defined 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 shall have the same effect as <space>. Lines beginning with other than the above characters are treated the same as lines beginning with a blank. The first character of a line is printed. If any such lines appear, an appropriate diagnostic is sent to standard error. This program forces the first line of each input file to start on a new page. (UNIX Standard only, see standards(5)) The action of the asa utility is unspecified upon encountering any character other than those listed above as the first character in a line. To view the output of FORTRAN programs which use ASA carriage control characters and have them appear in normal form, can be used as a fil- ter: The output, properly formatted and paginated, is then directed to the line printer. FORTRAN output previously sent to a file can be viewed on a user terminal screen by using: EXTERNAL INFLUENCES
For information about the UNIX standard environment, see standards(5). Environment Variables determines the interpretation of text within file as single- and/or multi-byte characters. determines the language in which messages are displayed. If or is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty variable. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See environ(5). International Code Set Support Single- and multi-byte character code sets are supported. SEE ALSO
efl(1), f77(1), ratfor(1), standards(5). STANDARDS CONFORMANCE
asa(1)
Man Page