Re: Man page oddity

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

 



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@xxxxxxxxx



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux