home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / shell / 5225 < prev    next >
Encoding:
Text File  |  1993-01-02  |  897 b   |  30 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!casey!gaboon!a3bee2!n1gva!root
  3. From: root@n1gva (The Nefarious Dr. Sponge)
  4. Subject: Re: stripping cr/lf's
  5. Message-ID: <1993Jan2.124525.16506@n1gva>
  6. Organization: Evil Weather Machines LTD
  7. References: <1992Dec31.071312.6153@netcom.com>
  8. Date: Sat, 2 Jan 93 12:45:25 GMT
  9. Lines: 19
  10.  
  11. kasajian@netcom.com (Kenneth Kasajian) writes:
  12. : How do I strip the cr's from a text file?  There must be a standard
  13. : unix way of doing it!
  14. : thanks
  15.  
  16. I have to do this alot with MS-DOS text files. :-(
  17.  
  18. Try:    tr -d "\015" < file_with_cr.s > new_file_wo_cr.s
  19.  
  20. See also the man page on 'tr'.
  21.  
  22. Fred
  23.  
  24. -- 
  25. < Fred Floberg - N1GVA >         Evil Weather Machines LTD.      <
  26. > 136 West Spring St.  <                                         >
  27. < West Haven, CT 06516 >        My employer has no opinions.     <
  28. > USA                  < email: ...!uunet!hsi!a3bee2!n1gva!n1gva >
  29.