Operating System - HP-UX
1819787 Members
3341 Online
109607 Solutions
New Discussion юеВ

Problem in viewing man pages

 
SOLVED
Go to solution
Ezhilarasan
Occasional Advisor

Problem in viewing man pages

Hi,

I have a problem in viewing and dedirecting man pages of commands.
For example, when I do man tar, it shows few words in highligted way (reverse to normal display, background in dark, letters in white) and other words are in plain text. When I try man tar > tar.out and see in vi, it is showing
control characters for higlighted words.
How to view man without highlight or how to dedirect to a file sothat there should not be any control character while view in vi.
If I do, cat tar.out, there is no highlight or control chars.
Please reply me how to resolve this.

Thanks
R.Ezhil
2 REPLIES 2
Armin Feller
Honored Contributor

Re: Problem in viewing man pages

Hi,

please export a hp terminal.

# export TERM=hpterm

Regards,
Armin
kish_1
Valued Contributor
Solution

Re: Problem in viewing man pages

use this command
man tar | col -b > tar.out
share the power of the knowledge