I have file whose format like this:
tcpport 1500
webports 1500,1500
tcpclientport 1500
I want to replace 1500 by 1510, only
when I find the string webports.
I found many scripts on searching and replacing strings, but they replace all the occurrences of a string by another string. That's not what I want.
How can I do that in a Windows batch file?