Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google site




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 09-30-2002
minazk
Guest
 

Posts: n/a
Bits: 0 [Banking]
Re: Remove control characters

Aravind,

I presume, you want to save your man pages for future reference or for printing purpose.What I would suggest is to try the following command:
# man ls | col -b > filename

where,
ls - is the command whose man pages are required.
filename - is the name of the file to be saved.

I'm sure this will solve your problem.

Minaz



Quote:
Originally posted by aravind_mg
Hi,
When I do a man and save it into a file, I end up getting a lot of control characters. How can I remove them??
I tried this:
/1,$ s/^H//g
But I get an error saying "no previous regular expression".
Can someone help me with this.

Thanks,
Aravind