How to break inner loop in nested loop batch script

前端 未结 3 1716
广开言路
广开言路 2020-12-15 06:38

MY goal is to compare two files line by line and capture the changes. For that i am using two nested loops. I am stuck with braking the inner loop on some condition.

<
3条回答
  •  情话喂你
    2020-12-15 07:23

    you do not have to reinvent the wheel (if you have a choice). This is just one way. Download diffutils for windows and then you can just do

    diff sample.txt test.txt
    

提交回复
热议问题