home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / wizards / 3709 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  1.1 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!sdd.hp.com!hpscdc!hplextra!hpcc05!hpyhde4!hpycla!hpergfg2!hprdash!hprpcd!tmilner
  2. From: tmilner@hprpcd.rose.hp.com (Tom Milner)
  3. Newsgroups: comp.unix.wizards
  4. Subject: Re: 'cat'ting 8 bit data to the terminal.....
  5. Message-ID: <15250003@hprpcd.rose.hp.com>
  6. Date: 26 Aug 92 20:52:59 GMT
  7. References: <BARNETT.92Aug24093311@grymoire.crd.ge.com>
  8. Organization: Performance Technology Center, Roseville
  9. Lines: 21
  10.  
  11. In comp.unix.wizards, barnett@grymoire.crd.ge.com (Bruce Barnett) writes:
  12.  
  13. |    I have a question about using cat to output 8 bit data to the
  14. |    terminal. Actually, I want to ignore the 8th bit. I thought
  15. |        stty -istrip
  16. |        cat file
  17. |    would remove the parity bit, but apparently not on SunOS 4.1.1. I am
  18. |    trying to determine if
  19. |        a) this is a bug
  20. |        b) there is another stty option I have to use ( I tried
  21. |           several combinations)
  22. |        c) I have to write a program to remove parity from a pty
  23. |           connection.
  24. |
  25.     .
  26.     .
  27. |    --
  28. |    Bruce Barnett <barnett@crd.ge.com> uunet!crdgw1!barnett
  29.  
  30. How 'bout
  31.     cat file | tr '[\200-\377]' '[\000-\177]'
  32.