asa (1) - Linux Manuals

asa: convert ASA (Fortran) carriage control charachters

NAME

asa - convert ASA (Fortran) carriage control charachters

SYNOPSIS

asa [file...]

DESCRIPTION

asa reads text with ASA cariage control characters from the files specified as its command arguments, or standard input if none are specified, and converts them into line printer control sequences.

These control characters are traditionally used in Fortran programs.

The first character of every line is removed from input, and the following actions are performed:

If the caracter removed is:

<space>
the rest of the line is output without change.
0
a <newline> is output, then the rest of the input line.
1
a <form feed> is output, then the rest of the input line.
+
An attempt is made to overstrike the previous line with the one following the character; this can be used for emphasis.
<any other character>
The same actions as for a <space> are performed; this is an extension of the POSIX.2 standard.

The overstriking generated is compatible to less(1) and a2ps(1) and may be removed by piping the output through col -b

Tabs in the input file are expanded to a width of eight.

BUGS

It is not be possible to use the asa filter for interactive use in Fortran programs, because of the semantics of the + character, and because I/O is buffered.

CONFORMS TO

POSIX.2

SEE ALSO

f2c(1), f77(1), col(1), less(1), a2ps(1)