home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!decwrl!elroy.jpl.nasa.gov!ames!kronos.arc.nasa.gov!iscnvx!lange
- From: lange@iscnvx.lmsc.lockheed.com (Alex Lange)
- Newsgroups: comp.unix.questions
- Subject: Re: Removing control codes, underscores
- Message-ID: <1992Jul28.140332.15535@iscnvx.lmsc.lockheed.com>
- Date: 28 Jul 92 14:03:32 GMT
- References: <1992Jul28.031523.16602@sequent.com>
- Reply-To: lange@lmsc.lockheed.com
- Organization: Moving Finger Writes, Inc.
- Lines: 23
- X-Newsreader: Tin 1.1 PL4
-
- : kuo_wy@jhunix.hcf.jhu.edu writes:
- :
- : > Hi. I was wondering if anyone could help me with the following problem.
- : > I'd like to be able to print a man file or ftp it do a Macintosh for
- : > viewing.
- : > Suppose I man command > temp
- : > Then, lpr temp.
- : > What I receive on the printout is, e.g.:
- : > KKKKSSSSHHHH SSSSiiiilllliiiiccccoooonnnn
- : > GGGGrrrraaaapppphhhhiiiiccccssss
- :
- : [ etc. ]
- :
- : > So, my question is how do I remove the repeated characters, the underscores
- : > and the control codes?
-
- Sorry if someone already posted this answer: look for a command
- called "col" (did you say what kind of UNIX you're using?).
- Removing backspace/character combinations is easy:
-
- man col | col -b > out
-
- Alex Lange
-