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

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