home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9484 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  1.2 KB

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