home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / shell / 5206 < prev    next >
Encoding:
Text File  |  1992-12-31  |  1.2 KB  |  31 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!mnemosyne.cs.du.edu!nyx!jefouger
  3. From: jefouger@nyx.cs.du.edu (Jim  Fougeron)
  4. Subject: Re: stripping cr/lf's
  5. Message-ID: <1992Dec31.165409.23109@mnemosyne.cs.du.edu>
  6. Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
  7. Organization: University of Denver, Dept. of Math & Comp. Sci.
  8. References: <1992Dec31.071312.6153@netcom.com>
  9. Date: Thu, 31 Dec 92 16:54:09 GMT
  10. Lines: 19
  11.  
  12. kasajian@netcom.com (Kenneth Kasajian) writes:
  13.  
  14.  
  15. >How do I strip the cr's from a text file?  There must be a standard
  16. >unix way of doing it!
  17. >thanks
  18.  
  19. I perform this task with a utility from Omen (rz/sz people) called undos.
  20. This program will convert files from dos-unix-mac-cpm.
  21. If you wanted to do this ONLY using standard Unix commands, one way is:
  22. tr -d '/15' < infile > outfile
  23. NOTE: Do not do this on anything other than PLAIN text, or you will end up
  24.       with  a corrupted output file.
  25. Hope this helps.
  26. --
  27. ---------------------------------------------------------------------------
  28. |  Jim Fougeron                |  What is the true meaning of happiness?  |
  29. |  jefouger@nyx.cs.du.edu      |   Is it money, cars and women, ... or    |
  30. |  jimfn@ids.net               |   just money and cars?  Calvin & Hobbes  |
  31.