[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Man page oddity



On Wed, 2006-03-29 at 11:34, CodeHeads wrote:

> > Something I've never seen before -
> > 
> > If a man page is long and I need to study it, I print it out from
> > Konqueror (kio slave) which gives a nicely formatted, easy-to-read
> > output.  Today I tried to print out two man pages.  One, amanda.conf,
> > prints perfectly, but the other one, amanda, prints nothing other than
> > the header line.  Nothing seems to make any difference to it.
> > 
> > I've got by using copy/past and printed out, so it's not a
> > show-stopper.  I just wondered if anyone has seen this sort of thing
> > before?
> > 
> > Anne
> 
> Hi Anne,
> 
> This is what I use to print and look at man pages. It is a bit easier.
> 
> #!/bin/bash
> ## INSTALLATION:
> ## MAKE A FILE mancon AND PLACE IT IN THE /USR/BIN DIRECTORY, YOU MUST
> BE ROOT TO DO THIS ## CHMOD IT TO 700 - * CHOWN TO YOUR USERNAME - *
> (chown user:user /usr/bin/mancon) ## TYPE IN mancon AT THE TERMINAL AND
> YOU SHOULD SEE "What is the man page?" ## ANY QUESTIONS VISIT
> HTTP://CODE-HEADS.COM
> 
> echo "CodeHeads Man Page Conversion"
> read -p "What is the man page?? " M
> if [[ $M == "" ]]
> then
> echo "Sorry need a MAN page to convert"
> else
> man $M | col -b > ~/$M.txt
> echo; echo "Your file has been saved as $M.txt in your home directory"
> fi
> 
> A text file always seems easier to print. :)  Hope this helps.

But, but, but...  Don't you really want the nice typeset version
from 'man -t ...'?  And you should be able to "...|lpr" instead
of bothering with files.

-- 
  Les Mikesell
   lesmikesell gmail com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]