On Sat, 27 Apr 2002 01:47:41 -0500, Wes Harper wrote: > If you have sed (stream editor) you can create a script for this.
> Save as dos2unix > #!/bin/sh > sed 's/^M//' $1 > Save as unix2dos > #!/bin/sh > sed 's/$/^M/' $1 > You can use ctrl-v ctrl-m combination in vi to create the ^M you can't > just type it in. > chmod +x dos2unix or whatever... > syntax is: > dos2unix < dosfile > unixfile > unix2dos < unixfile > dosfile > --- Wes > On Sat, Apr 27, 2002 at 06:07:49AM +0000, [EMAIL PROTECTED] wrote: >> Hello: >> Can anyone here recommend a good utility program for removing >> the CTRL + LF characters, i.e, the "^M" characters from the >> ends of lines in DOS text files? >> ...SNIP >> Does anyone here know of a simple way to deal with it? >> Sam Heywood Thanks, but I'm obviously a newbie to Linux and I don't understand any complicated syntax structures and I haven't learned yet how scripts work and I don't want to mess around with any stream editors, whatever they are. I just use a normal text editor. I have learned from Steven that the "dos2unix" utility comes provided with the BasicLinux distribution. I haven't had an occasion to try it yet, but I will soon. Sam Heywood -- This mail was written by user of The Arachne Browser - http://arachne.cz/
