batch file - How do I find and replace text? -


i need make batch file replace setting in "config.ini" example:

color = 1a 

how can find , replace only 1a part instead of making line.

are in unix-like os? if so, use sed command:

sed 's/1a/replacedstring/' config.ini 

for more information: http://en.wikipedia.org/wiki/sed


Comments