home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!darwin.sura.net!mips!apple!apple!veritas!amdcad!weitek!pyramid!daemon
- From: flash@pyrtech.mis.pyramid.com (Dean "Flash" Fashbaugh)
- Newsgroups: comp.unix.questions
- Subject: Re: Removing control codes, underscores
- Message-ID: <182826@pyramid.pyramid.com>
- Date: 28 Jul 92 14:11:57 GMT
- Sender: news@pyramid.pyramid.com
- Reply-To: flash@pyrtech.pyramid.com (Dean "Flash" Fashbaugh)
- Organization: Pyramid Technology Corp., Mountain View, CA
- Lines: 27
- Originator: daemon@sword.eng.pyramid.com
-
- >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
- >
- > So, my question is how do I remove the repeated characters, the underscores
- > and the control codes?
-
- Try using 'col -b':
-
- man command | col -b > file
-
- My Head's Filled With,
-
- /~~~~~~~/_____ /\ _____ __ __ X Dean "Flash" Fashbaugh
- ~~/ /~~ / _ / / \ \ __\ \ \__\ \ X Pyramid Technology Corp.
- / / / _/ / /\ \ \___ \ \ ___ \ X 3850 N. First St.
- / / / /\ \ / ____ \ __\ \ \ \ \ \ X San Jose, CA 95134
- /_/ /_/ \_\/_/ \_\ \____\ \_\ \_\ X (408) 428-8201
- -------------------------------------------------------------------------
- *> Democrats and Republicans belong in "The Home", NOT IN THE HOUSE! <*
- -------------------------------------------------------------------------
-