RuuddR
RuuddR

Reputation: 941

Find text and replace it with CMD

I want to make an CMD program that can find text in a text file and then replace it with something else. Example: I want to find: maleEquip1 and I want to change it to: anInt165 Is that possible with a CMD program?

Upvotes: 0

Views: 377

Answers (1)

MichaelS
MichaelS

Reputation: 6032

Yes, it is possible. But it's very uggly. I would suggest to not reinvent the wheel. If it's possible to use 3rd party software take a look at a tool called fnr (http://findandreplace.codeplex.com/). You can call it from your cmd with the desired parameters. It's realy fast and easy to use.

Upvotes: 1

Related Questions