man pages section 1: User Commands

Exit Print View

Updated: July 2014
 
 

asa(1)

Name

asa - convert FORTRAN carriage-control output to printable form

Synopsis

asa [-f] [file]...

Description

The asa utility will write its input files to standard output, mapping carriage-control characters from the text files to line-printer control sequences.

The first character of every line will be removed from the input, and the following actions will be performed.

If the character removed is:

SPACE

The rest of the line will be output without change.

0

It is replaced by a NEWLINE control sequence followed by the rest of the input line.

1

It is replaced by a NEWPAGE control sequence followed by the rest of the input line.

+

It is replaced by a control sequence that causes printing to return to the first column of the previous line, where the rest of the input line is printed.

For any other character in the first column of an input line, asa skips the character and prints the rest of the line unchanged.

If asa is called without providing a filename, the standard input is used.

Options

The following option is supported:

–f

Start each file on a new page.

Operands

The following operand is supported:

file

A pathname of a text file used for input. If no file operands are specified, or  −  is specified, the standard input will be used.

Environment Variables

See environ(5) for descriptions of the following environment variables that affect the execution of asa: LANG, LC_ALL , LC_CTYPE, LC_MESSAGES, and NLSPATH.

Exit Status

The following exit values are returned:

0

All input files were output successfully.

>0

An error occurred.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os
Interface Stability
Committed
Standard

See also

attributes(5), environ(5), standards(5)