Using the batch file below, I want to output the different content in 1.txt and 2.txt to 3.txt
findstr /v /g:d:\1.txt 2.txt>3.txt
Where:
1.txt:
Chinese
morning
evening
2.txt:
Chinese
morning
eveningde
The result output to 3.txt is as follows:
Chinese
morning
eveningde
But if I add the letter a to the first three lines in both .txt documents (other letters work too), then the result in 3.txt is correct:
eveningde
Could some experts please explain why this is? Could it be that findstr can't compare lines that start directly with Chinese characters? Then if the text I want to compare starts with Chinese characters, what should I do?
findstr /v /g:d:\1.txt 2.txt>3.txt
Where:
1.txt:
Chinese
morning
evening
2.txt:
Chinese
morning
eveningde
The result output to 3.txt is as follows:
Chinese
morning
eveningde
But if I add the letter a to the first three lines in both .txt documents (other letters work too), then the result in 3.txt is correct:
eveningde
Could some experts please explain why this is? Could it be that findstr can't compare lines that start directly with Chinese characters? Then if the text I want to compare starts with Chinese characters, what should I do?
