home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9486 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.8 KB  |  54 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!wariat!zbig
  3. From: zbig@wariat.org (Zbigniew J. Tyrlik)
  4. Subject: Re: Removing control codes, underscores
  5. Message-ID: <1992Jul28.141208.27017@wariat.org>
  6. Followup-To: comp.unix.questions
  7. Reply-To: zbig@wariat.org (Zbigniew J. Tyrlik)
  8. Organization: Akademia Pana Kleksa, Public Access Uni* Site
  9. References: <1992Jul17.215441.2717@jhunix.hcf> <1992Jul28.031523.16602@sequent.com>
  10. Date: Tue, 28 Jul 1992 14:12:08 GMT
  11. Lines: 41
  12.  
  13. As quoted from <1992Jul28.031523.16602@sequent.com> by gregf@sequent.com (Greg Fuller):
  14.  
  15. +---------------
  16. > kuo_wy@jhunix.hcf.jhu.edu writes:
  17. > > Hi.  I was wondering if anyone could help me with the following problem.
  18. > > I'd like to be able to print a man file or ftp it do a Macintosh for
  19. > > viewing.
  20. > > Suppose I man command > temp
  21. > > Then, lpr temp.
  22. > > What I receive on the printout is, e.g.:
  23. > > KKKKSSSSHHHH SSSSiiiilllliiiiccccoooonnnn
  24. > > GGGGrrrraaaapppphhhhiiiiccccssss
  25. > [ etc. ]
  26. > > So, my question is how do I remove the repeated characters, the underscores
  27. > > and the control codes?
  28. > I would recommend using sed like this: (^H is control H)
  29. > man command | sed 's/.^H//g' > temp
  30. > greg
  31.  
  32.  
  33. What about:
  34. man command | col -b > temp
  35.  
  36. Where col -b will assume that device is incapable of backspacing, 
  37. and will take care of all of it....
  38.  
  39. _zjt
  40.  
  41. -- 
  42. ********************************************************************
  43. Zbigniew J. Tyrlik             wariat!zbig           zbig@wariat.org
  44. IBM PC SIG Sysop - Cleveland Free-Net    aa609@cleveland.freenet.edu
  45. Akademia Pana Kleksa   Public Access UNI* Cleveland,  (216)-481-9445
  46. E-mail, news feeds, shell accounts        UnixBBS distribution point 
  47. ********************************************************************
  48.