A few months ago I needed to replace a number of object names in a number of files. My first thought was to load a file into a text editor, do a search and replace for each object name, save the file, and repeat for each file until done. It seemed this would be time-consuming and error-prone. I set out to find a tool that could do that in one step. Lo and behold,
Alex Fauland had created just the tool I needed -
A.F.9. This ingenious tool allows you to create a list of strings, and what string to replace each with. The list is stored as XML and looks like this:
<FIND TYPE=ASC>string1</FIND><REPLACE TYPE=ASC>newstring1</REPLACE>
<FIND TYPE=ASC>string2</FIND><REPLACE TYPE=ASC>newstring2</REPLACE>
<FIND TYPE=ASC>string3</FIND><REPLACE TYPE=ASC>newstring3</REPLACE>
Though I've only used it for ASCII (ASC), it also supports decimal and hexadecimal strings - and even lets you replace one type with another. It can overwrite existing files, or create new files. It reports how many times a replacement is made on each file.
No comments:
Post a Comment