Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wasatch!cs.utexas.edu!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: Re^2: end of line character Keywords: eol Message-ID: <1889@auspex.auspex.com> Date: 10 Jul 89 18:35:22 GMT References: <429@ncelvax.UUCP> <8135@bsu-cs.bsu.edu> <2843@kappl.cs.vu.nl> Reply-To: guy@auspex.auspex.com (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 26 > % cat todos > #!/bin/sed -f > s/$/^M/ (Where "^M" stands for "a control-M", not for "'^' followed by 'M'", of course.) > % cat fromdos > #!/bin/sed -f > s/.$// Or #!/bin/sh - tr -d '\015\032' if you want to rip extraneous ^Zs out as well. > cr="`ctrl M`" You forgot to supply the "ctrl" command - it's not a standard part of S5 (I couldn't find it, anyway). The same sed 's/$/^M/' trick should work in S5 as well.