Show difference in two text files using minGW diff -


my objective compare 2 text file using mingw diff , result should saved in new text file.

i using command in command prompt:

c:\mingw\msys\1.0\bin\diff c:\mingw\msys\1.0\bin\v1.txt c:\mingw\msys\1.0\bin\v2.txt 

v1.txt: cat. hate it.

v2.txt: rat. it. have house.

output in cmd:

this cat. hate it.                                     \ rat.  it.                                                               > have house. 

although shows difference, not saves result in new file. want neatly show difference in new text file.can please tell how that.

on windows (i'm assuming because of mingw), can log output of command textfile "> log.txt"

eg.

diff 1.txt 2.txt > log.txt


Comments