Re: Those wretched ^M's!

From: Sammy (samedi@DHC.NET)
Date: 11/13/97

On Thu, 13 Nov 1997, AxL wrote:

>         Well, just is your friend. :)
>         :g/ /s///g

True, but very impractical when dealing with a large number of files.
Much easier to do something like:

# run this from lib/world
for FILE in */*
    tr -d '\r' < $FILE > $FILE.tmp
    mv $FILE.tmp $FILE

I don't do any offline editing, so a single ^M at the end of some lines
doesn't bother me too much.


     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/08/00 PST