[Novalug] Printing question

DonJr djr1952 at hotpop.com
Sat Dec 8 03:47:30 EST 2007


On Sat, 2007-12-08 at 01:02 -0500, Ellis wrote:
> On Friday 07 December 2007 23:40, Dan Arico wrote:
> > On Friday 07 December 2007 23:14, Charles M Howe wrote:
> > > List,
> > >
> > > I have a text file, (created using vi) of considerable length to print.
> > > It consists mainly of single lines  but sometimes (a few times a page)
> > > there are two lines of text. Then there is a blank line.
> > >
> > > The inelegant way of printing it is to insert a new page (control-L)
> > > after 60 (or 59, or even 58)lines of text, then a few blank lines. But
> > > that gets tedious. Can anyone suggest a better way of doing it?
> > >
> > > Charlie
> >
> > What's wrong with opening it in Open Office as a text file and printing
> > from that?
> 
> Why use Open Office (unless it is already open)?  Open it in Kate, and it will 
> print 55 lines per page, with a header showing the date, file name, and page 
> number.  Fast opening, and no extra formatting steps.
> 
> Ellis Pierce

<GRIN>
Why install KDE and all it libs and other junk in order to install/run
'kate' when gedit will do the same thing? 
</GRIN>

Or even more simple:
   pr file.txt | lpr
see: <http://linux.about.com/library/cmd/blcmdl1_pr.htm>

Or to page-break a txt file with 'lpr' it's:
  lpr -p file.txt
see: <http://www.ss64.com/bash/lpr.html>

There are also a number of other simple text formatting tools out there
do a Google on: linux print text formatting page break


--  
-- 
 Don E. Groves, Jr. 

$ /usr/games/fortune : 
Q: What do you have when you have a lawyer buried up to his neck in
   sand? 
A: Not enough sand.



More information about the Novalug mailing list