[PLUG] Page margins

Mark Wills mark at planetwills.com
Wed May 15 04:46:34 UTC 2002


pr can do lots of nice things to plain text files including margins
paginating, headers, page numbers and making columns etc.

pr
Print formatting filter. This will paginate files (or stdout) into sections
suitable for hard copy printing or viewing on screen. Various options permit
row and column manipulation, joining lines, setting margins, numbering
lines, adding page headers, and merging files, among other things. The pr
command combines much of the functionality of nl, paste, fold, column, and
expand.

pr -o 5 --width=65 fileZZZ | more gives a nice paginated listing to screen
of fileZZZ with margins set at 5 and 65.

A particularly useful option is -d, forcing double-spacing (same effect as
sed -G).


-----Original Message-----
From: plug-admin at lists.pdxlinux.org
[mailto:plug-admin at lists.pdxlinux.org]On Behalf Of Robert Kopp
Sent: Tuesday, May 14, 2002 7:16 PM
To: plug at lists.pdxlinux.org
Subject: [PLUG] Page margins


This may be an easy question. When I want unformatted
output of a text file

$lpr textfile

the left margin is so narrow that about 2mm of the
text is cut off to the left. By the way, the printing
from my Linux box goes to a remote Samba printer. Is
there an easy way to adjust this?

=====
Robert "Tim" Kopp
http://analytic.tripod.com/

"SAMBA--opening Windows to a wider world."

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

_______________________________________________
PLUG mailing list
PLUG at lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug





More information about the PLUG mailing list