Printing a man page.
Vikram Goyal
vikigoyal at gmail.com
Sat Aug 27 14:32:31 UTC 2005
Hello Guys!
Thank you all for a wonderfull feedback. After some experimenting I came
up with these two small functions added to ~/.bash_profile which I find
very easy to use.
function printman
{
man "$1" | col -b | ul -t dumb | enscript -E -f "Times-Roman at 11/13"
}
function printext
{
cat "$1" | col -b | ul -t dumb | enscript -E -f "Times-Roman at 11/13"
}
By the way in haste I forgot to mention the type of printer I am having.
It's a dot matrix printer.
Thank You all again.
--
vikram...
||||||||
||||||||
^^'''''^^||root||^^^'''''''^^
// \\ ))
//(( \\// \\
// /\\ || \\
|| / )) (( \\
--
Hark ye, Clinker, you are a most notorious offender. You stand convicted of
sickness, hunger, wretchedness, and want.
-- Tobias Smollet
--
_
~|~
=
Registered Linux User #285795
More information about the fedora-list
mailing list