Page 1 of 1
.mn2/msn
Posted: Thu Mar 08, 2007 12:57 am
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
Posted: Thu Mar 08, 2007 2:31 am
by Munk
Re:
Posted: Thu Mar 08, 2007 6:17 am
by lars
Munk wrote:Get a Linux-Machine ^^
That command might work in CygWin (Windows)
Posted: Thu Mar 08, 2007 11:53 am
by fliptw
any good text editor would that also
find in files...
Posted: Thu Mar 08, 2007 12:29 pm
by lars
Notepad++ perhaps
Posted: Thu Mar 08, 2007 2:59 pm
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
Posted: Thu Mar 08, 2007 9:25 pm
by Theftbot
No program that might work-Im talking hundreds of files@same time
Posted: Fri Mar 09, 2007 12:08 am
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.
Posted: Fri Mar 09, 2007 1:32 am
by Theftbot
Thanks Alot Kyouryuu. It works nicely. Again TY