Quote:>When I do this:
>man xdm > textfile (replace 'xdm' with any unix man pg. entry)
>I get weird control characters in textfile. I'm using a vt100
>terminal telnet'ed to a UNIX system (and using csh). How do I
>get "just" a text file?
>If I printed this file on a postscript printer, would these
>characters be interpreted as underlines and bold-characters?
I'll take a stab at this one. The output of the man command includes codes
for bolding, using <ctrl-h> to backspace and then repeating the character,
as well as <ctrl-h> to backspace and then underline the character on your
screen. When you redirect this stuff to a file, it doesn't act right.
I put together a little C program that you can pipe your man information
through in order to take out underscores as well as <ctrl-h>s and the
characters that follow...
switch(character = getchar())
if (character == EOF)
Compile this guy using "cc no_ctrl_h.c". Then rename the excutable a.out
to whatever you want - "clean" is pretty good. Then pipe your stuff through
it like so...
man xadm | clean > xadm.clean
This works on my COHERENT system, but I can't tell on this Sun OS, 'cause
the man pages seem to redirect clean already.
>David M. Jackson
>Georgia Institute of Technology, Atlanta Georgia, 30332