Find until that line and replace with another text file windows batch script
问题 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. 回答1: Your specific scenario is fairly easy to implement in batch. I'm assuming you want to preserve the entire line that contains