Unix and Linux Discussions Tagged with carriage return |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
11 |
7,729 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
16,413 |
Shell Programming and Scripting |
|
|
|
7 |
6,322 |
Shell Programming and Scripting |
|
|
|
2 |
11,387 |
UNIX for Advanced & Expert Users |
|
|
|
8 |
7,361 |
Shell Programming and Scripting |
|
|
|
3 |
6,034 |
UNIX for Advanced & Expert Users |
|
|
|
6 |
21,997 |
Shell Programming and Scripting |
|
|
|
3 |
4,477 |
Shell Programming and Scripting |
|
|
|
6 |
4,391 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
21,191 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
140,327 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
6,202 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
5,842 |
UNIX for Dummies Questions & Answers |
ASA(1) BSD General Commands Manual ASA(1)
NAME
asa -- interpret carriage-control characters
SYNOPSIS
asa [file ...]
DESCRIPTION
The asa utility reads files sequentially, mapping FORTRAN carriage-control characters to line-printer control sequences, and writes them to
the standard output.
The first character of each line is interpreted as a carriage-control character. The following characters are interpreted as follows:
<space> Output the rest of the line without change.
0 Output a <newline> character before printing the rest of the line.
1 Output a <formfeed> character before printing the rest of the line.
+ The trailing <newline> of the previous line is replaced by a <carriage-return> before printing the rest of the line.
Lines beginning with characters other than the above are treated as if they begin with <space>.
EXIT STATUS
The asa utility exits 0 on success, and >0 if an error occurs.
EXAMPLES
To view a file containing the output of a FORTRAN program:
asa file
To format the output of a FORTRAN program and redirect it to a line-printer:
a.out | asa | lpr
SEE ALSO
f77(1)
STANDARDS
The asa utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
AUTHORS
J.T. Conklin, Winning Strategies, Inc.
BSD
May 9, 2002 BSD