batch script to extract lines between two specified lines
问题 I have a text file and would like to extract all the lines between two specified lines using windows batch scripting. Line1: !FILE_FORMAT=ADS Line2: !VERSION=1.0 . . LineX: 'Parent|Child|IsPrimary| * *** (the line starts with ' and is long) . . LineY: !PropertyArray=Cost Center (The lines starts with !) . . LineZ. I want to extract all the lines between LineX and LineY and output it to another file. The below code finds the starting line correctly. But it just deletes the line(Line Y) where I