in reply to Filter man page control characters?
Update: Are your man pages already processed in some way? The source for man pages on my system have formatting codes rather than control characters.
REs are definately not my strong point, but, if you only need to deal with the control H's and backspaces, how about after reading the man file into an array (i.e., @manlines) and then using something like:
map { s/\cH|[\b]//g } @manlines;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Filter man page control characters?
by Elijah (Hermit) on May 18, 2005 at 04:51 UTC |