I need to compare two text file and get the lines which are different.
I used
fc file1.txt file2.txt > fc.txt
I got the result but there is a problem:
If a line in any file is more than 128 character long, It breaks it into another line (after 128th character) and then compares.
Is this a commom problem? (this problem is not the same as this one: http://support.microsoft.com/kb/953929)
If you're running this under PowerShell,
fc
is an alias for theFormat-Custom
command. You want to runfc.exe
.