xref: /freebsd/usr.bin/asa/asa.1 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
13990fae7STim J. Robbins.\"	$NetBSD: asa.1,v 1.11 2002/02/08 01:36:18 ross Exp $
23990fae7STim J. Robbins.\"
33990fae7STim J. Robbins.\" Copyright (c) 1993 Winning Strategies, Inc.
43990fae7STim J. Robbins.\" All rights reserved.
53990fae7STim J. Robbins.\"
63990fae7STim J. Robbins.\" Redistribution and use in source and binary forms, with or without
73990fae7STim J. Robbins.\" modification, are permitted provided that the following conditions
83990fae7STim J. Robbins.\" are met:
93990fae7STim J. Robbins.\" 1. Redistributions of source code must retain the above copyright
103990fae7STim J. Robbins.\"    notice, this list of conditions and the following disclaimer.
113990fae7STim J. Robbins.\" 2. Redistributions in binary form must reproduce the above copyright
123990fae7STim J. Robbins.\"    notice, this list of conditions and the following disclaimer in the
133990fae7STim J. Robbins.\"    documentation and/or other materials provided with the distribution.
143990fae7STim J. Robbins.\" 3. All advertising materials mentioning features or use of this software
153990fae7STim J. Robbins.\"    must display the following acknowledgement:
163990fae7STim J. Robbins.\"      This product includes software developed by Winning Strategies, Inc.
173990fae7STim J. Robbins.\" 4. The name of the author may not be used to endorse or promote products
183990fae7STim J. Robbins.\"    derived from this software without specific prior written permission
193990fae7STim J. Robbins.\"
203990fae7STim J. Robbins.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
213990fae7STim J. Robbins.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
223990fae7STim J. Robbins.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
233990fae7STim J. Robbins.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
243990fae7STim J. Robbins.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
253990fae7STim J. Robbins.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
263990fae7STim J. Robbins.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
273990fae7STim J. Robbins.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
283990fae7STim J. Robbins.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
293990fae7STim J. Robbins.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
303990fae7STim J. Robbins.\"
3166562e1aSTim J. Robbins.Dd May 9, 2002
323990fae7STim J. Robbins.Dt ASA 1
333990fae7STim J. Robbins.Os
343990fae7STim J. Robbins.Sh NAME
353990fae7STim J. Robbins.Nm asa
363990fae7STim J. Robbins.Nd interpret carriage-control characters
373990fae7STim J. Robbins.Sh SYNOPSIS
383990fae7STim J. Robbins.Nm
393990fae7STim J. Robbins.Op Ar
403990fae7STim J. Robbins.Sh DESCRIPTION
413990fae7STim J. RobbinsThe
423990fae7STim J. Robbins.Nm
433990fae7STim J. Robbinsutility reads files sequentially, mapping
443990fae7STim J. Robbins.Tn FORTRAN
453990fae7STim J. Robbinscarriage-control characters to line-printer control sequences,
463990fae7STim J. Robbinsand writes them to the standard output.
473990fae7STim J. Robbins.Pp
483990fae7STim J. RobbinsThe first character of each line is interpreted as a carriage-control
4905cb5024SRuslan Ermilovcharacter.
5005cb5024SRuslan ErmilovThe following characters are interpreted as follows:
5105cb5024SRuslan Ermilov.Bl -tag -width ".Aq space"
5205cb5024SRuslan Ermilov.It Aq space
533990fae7STim J. RobbinsOutput the rest of the line without change.
543990fae7STim J. Robbins.It 0
5505cb5024SRuslan ErmilovOutput a
5605cb5024SRuslan Ermilov.Aq newline
5705cb5024SRuslan Ermilovcharacter before printing the rest of the line.
583990fae7STim J. Robbins.It 1
5905cb5024SRuslan ErmilovOutput a
6005cb5024SRuslan Ermilov.Aq formfeed
6105cb5024SRuslan Ermilovcharacter before printing the rest of the line.
6205cb5024SRuslan Ermilov.It \&+
6305cb5024SRuslan ErmilovThe trailing
6405cb5024SRuslan Ermilov.Aq newline
6505cb5024SRuslan Ermilovof the previous line is replaced by a
6605cb5024SRuslan Ermilov.Aq carriage-return
673990fae7STim J. Robbinsbefore printing the rest of the line.
683990fae7STim J. Robbins.El
693990fae7STim J. Robbins.Pp
703990fae7STim J. RobbinsLines beginning with characters other than the above are treated as if they
7105cb5024SRuslan Ermilovbegin with
7205cb5024SRuslan Ermilov.Aq space .
73a866e170SRuslan Ermilov.Sh EXIT STATUS
7466562e1aSTim J. Robbins.Ex -std
753990fae7STim J. Robbins.Sh EXAMPLES
763990fae7STim J. RobbinsTo view a file containing the output of a
773990fae7STim J. Robbins.Tn FORTRAN
783990fae7STim J. Robbinsprogram:
7905cb5024SRuslan Ermilov.Pp
8005cb5024SRuslan Ermilov.Dl "asa file"
813990fae7STim J. Robbins.Pp
823990fae7STim J. RobbinsTo format the output of a
833990fae7STim J. Robbins.Tn FORTRAN
843990fae7STim J. Robbinsprogram and redirect it to a line-printer:
8505cb5024SRuslan Ermilov.Pp
8605cb5024SRuslan Ermilov.Dl "a.out | asa | lpr"
873990fae7STim J. Robbins.Sh SEE ALSO
883990fae7STim J. Robbins.Xr f77 1
893990fae7STim J. Robbins.Sh STANDARDS
903990fae7STim J. RobbinsThe
913990fae7STim J. Robbins.Nm
923990fae7STim J. Robbinsutility conforms to
9366562e1aSTim J. Robbins.St -p1003.1-2001 .
943990fae7STim J. Robbins.Sh AUTHORS
9505cb5024SRuslan Ermilov.An J.T. Conklin ,
9605cb5024SRuslan ErmilovWinning Strategies, Inc.
97