extra pages when printing text files using pr and lpr

Mike Jeays Mike.Jeays at rogers.com
Fri Mar 12 04:22:41 PST 2004


On Thu, 2004-03-11 at 23:09, rogermiller wrote:
> Hi, all.
> 
> I write a lot of plain text files, and print them to a dot matrix
> printer attached to my parallel port. To do so, I use the pr command
> to add headers, as follows:
>   pr -o 8 filename | lpr
> 
> The problem is that the system always generates an extra page [form
> feed, I suppose] after the last page. If print *several* files at
> the same time, the extra sheet only follows the last page.
> 
> Is there any way of suppressing this last blank page / formfeed?
> 
> Thanks.
> 
> p.s. If it matters, I'm running 4.9-RELEASE.                 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

Try the "sf" option in /etc/printcap/.  Read man printcap for more
details.



More information about the freebsd-questions mailing list