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

  1. Path: sparky!uunet!usc!elroy.jpl.nasa.gov!news.claremont.edu!ucivax!orion.oac.uci.edu!news.service.uci.edu!hardy
  2. From: hardy@golem.ps.uci.edu (Meinhard E. Mayer (Hardy))
  3. Subject: Re: UNIX -> DOS conversion; ToolsInspector
  4. Nntp-Posting-Host: golem.ps.uci.edu
  5. Message-ID: <HARDY.92Aug27223619@golem.ps.uci.edu>
  6. In-reply-to: schmidmeier@evax12.eng.fsu.edu's message of 25 Aug 92 19:40:13 GMT
  7. Newsgroups: comp.sys.next.misc
  8. Organization: Department of Physics, UC Irvine, CA 92717-4575, USA
  9. Lines: 20
  10. References: <1992Aug25.144013.1@evax12.eng.fsu.edu>
  11. Date: 28 Aug 92 05:36:25 GMT
  12.  
  13. In article <1992Aug25.144013.1@evax12.eng.fsu.edu> schmidmeier@evax12.eng.fsu.edu writes:
  14. ??   now that I've learned frome some post a few days ago how to
  15. ??   search files and replace certain strings using
  16. ??         cat oldfile | sed s/oldstring/newstring/g > newfile
  17. ??   I'm wondering whether I can convert a UNIX-file to a
  18. ??   DOS-file that way, by replacing all the LineFeeds with
  19. ??   CarriageReturn and LineFeed (\015 and \012 I think).
  20. ??   Using \012 as a string did not work, so what will I have to do ?
  21. ??
  22. It is even simpler to do this in emacs with a query-replace C-Q C-J
  23. (quote line-feed), with C-Q C-M C-Q C-J (carriage-return linefeed). 
  24. (I usually do the reverse when transfering TeX files from my laptop to
  25. the NeXT). Then hit Esc-! to do it globally. You can then save our
  26. file in all-caps so DOS will be happy :-) .
  27. --
  28. Hardy 
  29. -----
  30. Meinhard E. Mayer,  Department of Physics, UC Irvine 
  31. e-mail: hardy@golem.ps.uci.edu (preferred) or MMAYER@UCI.BITNET
  32.  
  33.