FENIX_coreutils/asa.1
2020-12-01 20:31:04 -06:00

57 lines
1 KiB
Groff
Executable file

.TH ASA 1
.SH NAME
asa \- interpret carriage-control characters
.SH SYNOPSIS
.B asa
.IR file
.SH DESCRIPTION
.B asa
maps carriage-control characters from a text file to line-printer
control sequences. The first character of every line is removed from
the input, with the following actions being performed.
.PP
If the character removed is:
.PP
.nf
.RS
<space> \- The rest of the line is output without change
.PP
0 \- A <newline> is output, then the rest of the input line.
.PP
1 \- A <formfeed> is output, then the rest of the input line.
.PP
+ \- A <carriage return> is output, then the rest of the input line.
.RE
.fi
.PP
If asa encounters any other characters, it behaves as if it
encountered <space>.
.SH OPTIONS
None
.SH EXAMPLES
.nf
.RS
asa \fIfile\fR
.RE
.fi
.PP
outputs
.IR file
to the terminal
.PP
.nf
.RS
a.out | asa | lp
.RE
.fi
.PP
formats the FORTRAN output of
.B a.out
and directs it to the printer.
.SH AUTHOR
Written by Kat.
.SH COPYRIGHT
Copyright (C) 2019 Katlynn Richey
.PP
This software is free software. Feel free to modify it and/or pass
it around.