lp—sends output to a printer (AT&T)

lp [ –cmsw ] [ –ddest ] [ –number ] [ –ooption ] [ –ttitle ] filename ...cancel [ ids ] [ printers ]

lp, cancel sends or cancels requests to a lineprinter.

Example A.26.
1   lp -n5 filea fileb
2   lp -dShakespeare filex

EXPLANATION

  1. Send five copies of filea and fileb to the printer.

  2. Specify Shakespeare as the printer where filex will be printed.

Get UNIX® Shells by Example, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.