I am trying to write a windows batch script that it will search until
Example:
example1
example2
example3
example4
<jar href="example.jar" main="true"/>
So i want to replace first part until ( <jar href ) of the text with another text.
I mean the first the first 4 lines will be replaces with another text.
Is there any find until and replace method in batch script.
Your specific scenario is fairly easy to implement in batch. I’m assuming you want to preserve the entire line that contains
<jar hrefYou don’t say where the replacement text is coming from. I’m assuming it comes from another file.