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

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