[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.4

1.4     ! aaron       1: .\"    $OpenBSD: asa.1,v 1.3 1996/09/02 06:47:00 etheisen 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
1.3       etheisen   36: .Nm asa ,
                     37: .Nm fpr
1.1       deraadt    38: .Nd interpret carriage-control characters.
                     39: .Sh SYNOPSIS
1.3       etheisen   40: .Nm asa|fpr
1.1       deraadt    41: .Op Ar
                     42: .Sh DESCRIPTION
                     43: The
                     44: .Nm
                     45: utility reads files sequentially, mapping
                     46: .Tn FORTRAN
                     47: carriage-control characters to line-printer control sequences,
                     48: and writes them to the standard output.
                     49: .Pp
                     50: The first character of each line is interpreted as a carriage-control
                     51: character.  The following characters are interpreted as follows:
                     52: .Bl -tag -width indent
                     53: .It <space>
                     54: Output the rest of the line without change.
                     55: .It 0
                     56: Output a <newline> character before printing the rest of the line.
                     57: .It 1
                     58: Output a <formfeed> character before printing the rest of the line.
                     59: .It +
                     60: The trailing <newline> of the previous line is replaced by a <carriage-return>
                     61: before printing the rest of the line.
                     62: .El
                     63: .Pp
                     64: Lines beginning with characters other than the above are treated as if they
                     65: begin with <space>.
                     66: .Sh EXAMPLES
                     67: To view a file containing the output of a
                     68: .Tn FORTRAN program:
                     69: .Dl asa file
                     70: .Pp
                     71: To format the output of a
                     72: .Tn FORTRAN
                     73: program and redirect it to a line-printer.
                     74: .Dl a.out | asa | lpr
                     75: .Sh DIAGNOSTICS
                     76: The
                     77: .Nm
                     78: utility exit 0 on success, and >0 if an error occurs.
                     79: .Sh SEE ALSO
                     80: .Xr f77 1
                     81: .Sh STANDARDS
                     82: The
                     83: .Nm asa
                     84: utility conforms to
                     85: .St -p1003.2-92 .
1.3       etheisen   86: The
                     87: .Nm fpr
1.4     ! aaron      88: utility is deprecated and its use should be restricted.
1.1       deraadt    89: .Sh AUTHORS
                     90: J.T. Conklin, Winning Strategies, Inc.