Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!cs.utexas.edu!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.unix.questions Subject: Re^2: end of line character Keywords: eol Message-ID: <2843@kappl.cs.vu.nl> Date: 8 Jul 89 01:39:35 GMT References: <429@ncelvax.UUCP> <8135@bsu-cs.bsu.edu> Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 23 In article <429@ncelvax.UUCP> cathy@ncelvax.UUCP (Cathy Benney) writes: [how do I do newline conversions when moving files from UNIX to MS-DOS?] BSD: % cat todos #!/bin/sed -f s/$/^M/ % cat fromdos #!/bin/sed -f s/.$// % SysV: % cat todos : cr="`ctrl M`" /bin/sed "s/$/$cr/" $1 % cat fromdos : /bin/sed 's/.$//' $1 % -- "I HATE arbitrary limits, especially when |Maarten Litmaath @ VU Amsterdam: they're small." (Stephen Savitzky) |maart@cs.vu.nl, mcvax!botter!maart