Oracle Solaris Studio 12.4 Man Pages

Exit Print View

Updated: January 2015
 
 

fpr(1)

Name

fpr - convert FORTRAN carriage-control output to printable form

Synopsis

fpr [ file...  ]

Description

In UNIX System V, the asa utility is the standard, not fpr. 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. The first character of each line determines the vertical spacing as follows:

(blank)

one line

0

two lines

1

to 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.

Examples

Given the following file:

 
write(*,'(" Blank")')
write(*,'("0Zero ")')
write(*,'("+        Plus ")')
write(*,'("1One  ")')
end
Example 1 With actual files:
a.out > MyOutputFile
fpr  <  MyOutputFile |  lpr
Example 2 With only pipes:
a.out  |   fpr  |  lpr

Both of the above examples produce two pages of output.

Page 1:
     Blank

ZeroPlus
Page 2:
     One

Bugs

Results are undefined for input lines longer than 170 characters.

See also

asa (1)