.mn2/msn

For Descent, Descent II and Descent3 level editing and modification assistance.
Post Reply
User avatar
Theftbot
DBB Ace
DBB Ace
Posts: 172
Joined: Sun May 11, 2003 2:01 am

.mn2/msn

Post by Theftbot »

Does anyone know of a way to change the tag in a large number of .msn/mn2 files from anarchy to normal in a faster way than manually editing them individually.

Thank You
Munk
DBB Ace
DBB Ace
Posts: 82
Joined: Tue Jan 28, 2003 3:01 am
Location: Germany

Post by Munk »

Get a Linux-Machine ^^

Code: Select all

replace anarchy normal -- *.mn2
User avatar
lars
DBB Captain
DBB Captain
Posts: 773
Joined: Thu Nov 05, 1998 12:01 pm
Location: Denmark
Contact:

Re:

Post by lars »

Munk wrote:Get a Linux-Machine ^^

Code: Select all

replace anarchy normal -- *.mn2
That command might work in CygWin (Windows)
User avatar
fliptw
DBB DemiGod
DBB DemiGod
Posts: 6459
Joined: Sat Oct 24, 1998 2:01 am
Location: Calgary Alberta Canada

Post by fliptw »

any good text editor would that also

find in files...
User avatar
lars
DBB Captain
DBB Captain
Posts: 773
Joined: Thu Nov 05, 1998 12:01 pm
Location: Denmark
Contact:

Post by lars »

Notepad++ perhaps
User avatar
The Lion
DBB Ace
DBB Ace
Posts: 197
Joined: Mon Apr 17, 2006 2:13 pm
Location: The Netherlands

Post by The Lion »

Nahh...

I didn't know \"replace\", but I just checked and I have it too... as part
of MySQL. So for Cygwin users: it wouldn't work unless for some reason
you have a Cygwin version of MySQL. This should always work though:

Code: Select all

#!/bin/sh

for f in *.{msn,mn2}; do
  sed -i -e '/^type/s/anarchy/normal/i' $f
done
User avatar
Theftbot
DBB Ace
DBB Ace
Posts: 172
Joined: Sun May 11, 2003 2:01 am

Post by Theftbot »

No program that might work-Im talking hundreds of files@same time
User avatar
Kyouryuu
DBB Alumni
DBB Alumni
Posts: 5775
Joined: Fri Apr 30, 1999 2:01 am
Location: Isla Nublar
Contact:

Post by Kyouryuu »

Try ReplaceEm.
http://www.orbit.org/replace

I used that program several years ago to do mass changes on HTML files. I haven't had a cause to use it in a really long time, but it was super useful back then! Sounds like what you need.
User avatar
Theftbot
DBB Ace
DBB Ace
Posts: 172
Joined: Sun May 11, 2003 2:01 am

Post by Theftbot »

Thanks Alot Kyouryuu. It works nicely. Again TY
Post Reply