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