Jump to content

Replace string of file on command line


Recommended Posts


Gsar looks more easy, but I couldn't get it to work with search strings with a comma, but that is what I need.

It doesn't work for a string containing a comma and text, like 0,win. I tried to put it in quotes, but no luck.

Then I replaced it with ASCII or Hex-Code it just displays one match, but there are much more.

Does anybody know a solution for that or another tool?

Link to comment
Share on other sites

Yes use Munge.exe. Its part of the NT4 Resource Kit. You can search for it using google, I used it a few days ago for a batch file and it works very well.

Just create a txt file containing the current string and the required string separated by a space. You can sounded the string with " " as it works with any quoted text so your expression should work.

MUNGE strings.txt -l -t file.txt

strings.txt contains your search strings and file.txt is the file you want to edit

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.

  • Create New...