FPR(1) — USER COMMANDS
NAME
fpr − print FORTRAN file
SYNOPSIS
fpr
DESCRIPTION
fpr reads one file and writes another file. It transforms a file formatted by FORTRAN carriage-control conventions into a file formatted by UNIX line-printer conventions.
fpr copies its input onto its output, replacing the carriage control characters with characters that will produce the intended effects when printed using lpr(1). The first character of each line determines the vertical spacing as follows:
(blank)
one line
0two lines
1to first line of next page
+no advance
A blank line (that is, an empty line) is treated as if its first character is a blank. A blank line that appears as a carriage control character only is deleted.
A zero is changed to a newline.
A one is changed to a form feed.
A plus is simulated using backspaces.
Note that fpr is known as asa in UNIX System V.
EXAMPLES
With actual files, all of blank 0, 1, and + work.
Example 1.
a.out > MyOutputFile
fpr < MyOutputFile | lpr
fpr is not designed for pipes. Although fpr is intended for actual files, it partially works for pipes too. With only pipes, the + doesn’t work, but the other three do.
Example 2.
a.out | fpr | lpr
BUGS
Results are undefined for input lines longer than 170 characters.
Sun Release 4.1 — Last change: 24 January 1990