HPE 9000 and HPE e3000 Servers
cancel
Showing results for 
Search instead for 
Did you mean: 

How can i convert man page to text file..

 
SOLVED
Go to solution
이연주
Regular Advisor

How can i convert man page to text file..

Hi everyone!!

I want to know how can i convert man page to text file..
4 REPLIES 4
YoungHwan, Ko
Valued Contributor
Solution

Re: How can i convert man page to text file..

Hi!!

You can resolve this problem using following command.

# man [command] | col -b > command.txt

For example,

# man date | col -b > date_man.txt
# man lvcreate | col -b > lvcreate_man.txt
이연주
Regular Advisor

Re: How can i convert man page to text file..

Thanks for your quick reply.
Bill Hassell
Honored Contributor

Re: How can i convert man page to text file..

If you want to convert tabs to spaces and remove extra blank lines and the page separators, you can do this:

man \
| grep -v ^\ Hewlett-Packard\ Company \
| col -b \
| ssp \
| unexpand -a > some_textfile

This will convert tabs to spaces, remo


Bill Hassell, sysadmin
Bharat Katkar
Honored Contributor

Re: How can i convert man page to text file..

HI,
Suppose i am creating text file for man page of ftp then:
# man ftp | col -bx > ftphelp.txt
Regards

You need to know a lot to actually know how little you know