Man page oddity
CodeHeads
ch at code-heads.com
Wed Mar 29 17:34:00 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 29 Mar 2006 18:11:06 +0100
Anne Wilson <cannewilson at tiscali.co.uk> 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.
- --
Best regards,
~WILL~
Key: http://code-heads.com/keys/ch1.asc
Key: http://code-heads.com/keys/ch2.asc
Linux Commands: http://code-heads.com/commands
Linux Registered User: 406084 (http://counter.li.org/)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFEKsUIfw3TK8jhZrsRAu6fAKDPp04X9PClVuba2R6x9o8LU98RagCfQTPg
M9afZax91R2CPaHKUdouX6I=
=knCO
-----END PGP SIGNATURE-----
More information about the fedora-list
mailing list