Discussion Locked

munge

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Can anyone provide me with a short example of how to use munge, to do a simple search and replace on a replicated batch file accross my domain.

thanks

3 replies

by dgates_1

To use Minasi's explanation in the January 2000 issue of "Windows NT Magazine", pg 177,
suppose you have a file called animals, and you want to change every instance of cat in the file to dog. You need to use Notepad or another ASCII text editor to create a script file ( e.g. called changes) with the line

cat dog

Then, invoke Munge by entering

munge changes animals

Munge reports all the changes it made, then exits. The animals file then contains those changes, and you have a fileon your hard disk named animals.bak that contains the contents of the animals file before you ran Munge. For search-and-replace operations on files with the extension .bak, the tool complies but stumbles over a bug: Munge changes your modified file's extension to .mge and erases the original .bak file.

I can fax the entire article to you if you want or you may be able to find it on the Web. The title of the article is "Munge" by Mark Minasi, Windows NT magazine, January 2000, pg 177.

Hope this helps.

This discussion is closed to new replies.