I want to compare the contents of two text files and output the different content from the two files.
First I used
findstr /v /g:1.txt 2.txt>3.txt
pause
and it said findstr: the search string is too long
Both files are around 450K or so, and most of the content is the same, hehe
Then I used
for /f %%a in (1.txt) do (
for /f %%b in (2.txt) do (
findstr /v /c:"%%a" "%%b">>3.txt
)
)
pause
There was no error message this time, but 3.txt is an empty file. So depressing.......
Please give me some guidance, experts
First I used
findstr /v /g:1.txt 2.txt>3.txt
pause
and it said findstr: the search string is too long
Both files are around 450K or so, and most of the content is the same, hehe
Then I used
for /f %%a in (1.txt) do (
for /f %%b in (2.txt) do (
findstr /v /c:"%%a" "%%b">>3.txt
)
)
pause
There was no error message this time, but 3.txt is an empty file. So depressing.......
Please give me some guidance, experts
