version 1.4, 1998/09/07 16:44:33 |
version 1.5, 1998/09/23 04:32:34 |
|
|
.Nm fpr |
.Nm fpr |
.Nd interpret carriage-control characters. |
.Nd interpret carriage-control characters. |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm asa|fpr |
.Nm asa |
.Op Ar |
.Op Ar |
|
.Nm fpr |
|
.Op Ar |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
The |
The |
.Nm |
.Nm |
|
|
and writes them to the standard output. |
and writes them to the standard output. |
.Pp |
.Pp |
The first character of each line is interpreted as a carriage-control |
The first character of each line is interpreted as a carriage-control |
character. The following characters are interpreted as follows: |
character. Additionally, the following characters are interpreted as shown: |
.Bl -tag -width indent |
.Bl -tag -width indent |
.It <space> |
.It <space> |
Output the rest of the line without change. |
Output the rest of the line without change. |
.It 0 |
.It 0 |
Output a <newline> character before printing the rest of the line. |
Output a newline |
|
.Pq Sq \en |
|
character before printing the rest of the line. |
.It 1 |
.It 1 |
Output a <formfeed> character before printing the rest of the line. |
Output a <formfeed> character before printing the rest of the line. |
.It + |
.It + |
The trailing <newline> of the previous line is replaced by a <carriage-return> |
The trailing newline |
|
.Pq Sq \en |
|
of the previous line is replaced by a carriage-return |
|
.Pq Sq \er |
before printing the rest of the line. |
before printing the rest of the line. |
.El |
.El |
.Pp |
.Pp |
Lines beginning with characters other than the above are treated as if they |
Lines beginning with characters other than the above are treated as if they |
begin with <space>. |
begin with a space |
|
.Pq Sq \ . |
.Sh EXAMPLES |
.Sh EXAMPLES |
To view a file containing the output of a |
To view a file containing the output of a |
.Tn FORTRAN program: |
.Tn FORTRAN program: |
|
|
.Sh DIAGNOSTICS |
.Sh DIAGNOSTICS |
The |
The |
.Nm |
.Nm |
utility exit 0 on success, and >0 if an error occurs. |
utility exits 0 on success or >0 if an error occurred. |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr f77 1 |
.Xr f77 1 |
.Sh STANDARDS |
.Sh STANDARDS |