I like to compare two text files and save the difference under linux.
I know there are tools like kdiff, diff vimdiff etc. but my expectation are as follows.
- Output should be in a separate file
- The difference should be quoted with colours, ex: delete line in red and added line in green something like that
- It should ignore space differences
- It should be an opensource tool
use
tkdiff4 -w file-name1 file-name2It fulfills all your requirements. Specific color might be an issue.