Hello I am trying to search particular string in file and want to replace that string with other string in batch file.
For example, I am having a.txt containing following data:
line 1: Name: abc
line 2: Some words then age: 24 something
line 3: country:xyz
Now i want to find with “age:” and want to replace to
line 2: Some words then age: 30 something
and save in same a.txt.
thanks for help
This will replace every instance of
age: (whatever)in a text.inf withage: 30:OK, your new specs make this more difficult, but…