Re: Those wretched ^M's!

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


On Thu, 13 Nov 1997, AxL wrote:

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

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

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

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

Sam


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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