[BACK]Return to asa.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / asa

Annotation of src/usr.bin/asa/asa.1, Revision 1.2

1.2     ! deraadt     1: .\"    $OpenBSD: asa.1,v 1.4 1995/03/26 02:25:05 glass Exp $
1.1       deraadt     2: .\"    $NetBSD: asa.1,v 1.4 1995/03/26 02:25:05 glass Exp $
                      3: .\"
                      4: .\" Copyright (c) 1993 Winning Strategies, Inc.
                      5: .\" All rights reserved.
                      6: .\"
                      7: .\" Redistribution and use in source and binary forms, with or without
                      8: .\" modification, are permitted provided that the following conditions
                      9: .\" are met:
                     10: .\" 1. Redistributions of source code must retain the above copyright
                     11: .\"    notice, this list of conditions and the following disclaimer.
                     12: .\" 2. Redistributions in binary form must reproduce the above copyright
                     13: .\"    notice, this list of conditions and the following disclaimer in the
                     14: .\"    documentation and/or other materials provided with the distribution.
                     15: .\" 3. All advertising materials mentioning features or use of this software
                     16: .\"    must display the following acknowledgement:
                     17: .\"      This product includes software developed by Winning Strategies, Inc.
                     18: .\" 4. The name of the author may not be used to endorse or promote products
                     19: .\"    derived from this software without specific prior written permission
                     20: .\"
                     21: .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
                     22: .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
                     23: .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
                     24: .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
                     25: .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
                     26: .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
                     27: .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
                     28: .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
                     29: .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
                     30: .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                     31: .\"
                     32: .Dd September 23, 1993
                     33: .Dt ASA 1
                     34: .Os
                     35: .Sh NAME
                     36: .Nm asa
                     37: .Nd interpret carriage-control characters.
                     38: .Sh SYNOPSIS
                     39: .Nm asa
                     40: .Op Ar
                     41: .Sh DESCRIPTION
                     42: The
                     43: .Nm
                     44: utility reads files sequentially, mapping
                     45: .Tn FORTRAN
                     46: carriage-control characters to line-printer control sequences,
                     47: and writes them to the standard output.
                     48: .Pp
                     49: The first character of each line is interpreted as a carriage-control
                     50: character.  The following characters are interpreted as follows:
                     51: .Bl -tag -width indent
                     52: .It <space>
                     53: Output the rest of the line without change.
                     54: .It 0
                     55: Output a <newline> character before printing the rest of the line.
                     56: .It 1
                     57: Output a <formfeed> character before printing the rest of the line.
                     58: .It +
                     59: The trailing <newline> of the previous line is replaced by a <carriage-return>
                     60: before printing the rest of the line.
                     61: .El
                     62: .Pp
                     63: Lines beginning with characters other than the above are treated as if they
                     64: begin with <space>.
                     65: .Sh EXAMPLES
                     66: To view a file containing the output of a
                     67: .Tn FORTRAN program:
                     68: .Dl asa file
                     69: .Pp
                     70: To format the output of a
                     71: .Tn FORTRAN
                     72: program and redirect it to a line-printer.
                     73: .Dl a.out | asa | lpr
                     74: .Sh DIAGNOSTICS
                     75: The
                     76: .Nm
                     77: utility exit 0 on success, and >0 if an error occurs.
                     78: .Sh SEE ALSO
                     79: .Xr f77 1
                     80: .Sh STANDARDS
                     81: The
                     82: .Nm asa
                     83: utility conforms to
                     84: .St -p1003.2-92 .
                     85: .Sh AUTHORS
                     86: J.T. Conklin, Winning Strategies, Inc.