home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!sequent!muncher.sequent.com!gregf
- From: gregf@sequent.com (Greg Fuller)
- Subject: Re: Removing control codes, underscores
- Message-ID: <1992Jul28.031523.16602@sequent.com>
- Sender: usenet@sequent.com (usenet )
- Nntp-Posting-Host: eng3.sequent.com
- Organization: Sequent Computer Systems, Inc.
- References: <1992Jul17.215441.2717@jhunix.hcf>
- Date: Tue, 28 Jul 92 03:15:23 GMT
- Lines: 21
-
- 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?
-
- I would recommend using sed like this: (^H is control H)
-
- man command | sed 's/.^H//g' > temp
-
- greg
-