home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / admin / 6107 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.4 KB

  1. Path: sparky!uunet!munnari.oz.au!manuel.anu.edu.au!sserve!hakea!auugcanb!johnwuu!johnw
  2. From: johnw@johnwuu.canb.auug.org.au (John Wright)
  3. Newsgroups: comp.unix.admin
  4. Subject: HELP: ned 'sed' paramters to strip carriage returns from 
  5. Distribution: world
  6. Message-ID: <721322244snx@johnwuu.canb.auug.org.au>
  7. References: <Bx8H74.Dpz@news.cso.uiuc.edu>
  8. Date: Mon, 09 Nov 92 15:17:24 GMT
  9. Organization: Computer Sciences of Australia
  10. Reply-To: johnw@canb.auug.org.au
  11. Lines: 19
  12.  
  13.  
  14. In article <Bx8H74.Dpz@news.cso.uiuc.edu> djr48312@uxa.cso.uiuc.edu writes:
  15.  
  16.  > 
  17.  > I do a lot of transferring of files between dos and unix.  Most of it going >  from
  18.  > the unix to dos direction.  Im going to need to be able to copy a dos text file > 
  19.  > to a unix box and get rid of the '^m' at the end of each line.  A while ago
  20.  > 
  21.  > someone gave me a sed parameter to do the job.  I need it again.
  22.  > 
  23. You could try using tr -d "\014" < Dos.File > Unix.File to strip ^M's. 
  24. I don't know if this is any better/more efficient than sed.
  25.  
  26. +========================================================================+
  27. | John Wright                    |   Standard   | Voice : +61 6 249-1871 |
  28. | Computer Sciences of Australia |  Disclaimer  | Fax   : +61 6 253-1259 |
  29. | johnw@canb.auug.org.au         |    Notice    | Locn  : Canberra       |
  30. | 100032.553@compuserve.com      |   Applies    |         Australia      |
  31. +========================================================================+
  32.