lw(1) — USER COMMANDS
NAME
lw − process and send files to a LaserWriter printer
SYNOPSIS
lw [-num] [-nonum] [-b <linenum>] [-e <linenum>] [-asis] [-big| -medium| -small| -tiny] [-f <file>] [-d] [-P <printer>] [file ...]
DESCRIPTION
Format and print files on a LaserWriter . If a list of file names is specified, each file is sent to the LaserWriter for printing. If the file name is ‘-’, the program’s standard input is inserted at that point in the listing. If no file list is specified, the program’s standard input is used.
By default, the program makes listings with line numbers.
If any of the files end with the suffix .ps, they are assumed to contain printer commands and are passed through without modification.
OPTIONS
All options may be specified using an unambiguous substring.
-num The file is printed in a small font, with line numbers, and a header that has page, time, and file information in it.
-nonum
The file is printed in a small font, with no line numbers, and a header that has page, time, and file information in it.
-b linenum
The file is printed starting with line number linenum.
-e linenum
Only the lines through linenum are printed.
-asis The files to be printed are assumed to contain PostScript commands and are passed through unmodified to the printer.
-big| -medium| -small| -tiny
The file is printed in big (10 point), medium (8 point), small (5 point), or tiny (4 point) font. The default is medium.
-f file lw output is routed to the specified file rather than the print spooler.
-d lw output is routed to standard output rather than the print spooler.
-P printer lpr printer name to use. Default is “lw”.
EXAMPLES
To make make a listing of the files “file1” and “file2”,
% lw file1 file2
SEE ALSO
BUGS
If a filename ends with “.ps”, it is always processed in “asis” mode. There is no way to override this.
Sun Release 3.2 — Last change: 27 February 1987