Operating System - HP-UX
1833776 Members
2317 Online
110063 Solutions
New Discussion

man topic > filename without the highlites?

 
SOLVED
Go to solution
CommAdmin
Occasional Contributor

man topic > filename without the highlites?

I want to generate a man command output to a text file without all the 'highlighted' text commands. Simply, how do you do that.

If I use ie; $man - expect > expectman
then; more expectman
More displays all the highlighting. You can see it's there by doing 'vi expectman'.

How do I get rid of those annoying highlites.
2 REPLIES 2
Sridhar Bhaskarla
Honored Contributor
Solution

Re: man topic > filename without the highlites?

Hi,

I use the command 'man man |col -bx > /tmp/man.out'.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Pete Randall
Outstanding Contributor

Re: man topic > filename without the highlites?

Mark,

Try this:

man 5 regexp |col -b | expand > regexp.man


Pete

Pete