The standard comparison tool is very useful for finding lines in a file that is different, but it does not work very well for differences for each character. I often have to combine texts by nature (i.e., written text, not code), changed without synchronization on different computers (yes, I know that I shouldn't, but anyway). Besides adding a paragraph or two, I could change the comma, spelling error, or other small change in the text that was previously common to both files.
Diff will tell me which lines are changed, but since there may be several differences in each line, I must carefully scan the lines to find each physically small but important diff per line. After fixing, I have to repeat the difference to make sure that I did not miss any changes. This gets even worse when the lines are formatted in a paragraph (i.e., One line in a paragraph), and when many consecutive lines have such small differences.
At the moment, I have to admit that I usually upload both files to Microsoft Word and use the built-in diff function. Of course, it is inconvenient to run a huge package, such as Word, to find small differences, but at least it compares files on a "by nature" basis.
I really want to use Unix. A small and cute tool or script that performs character matching over text, i.e. Not based on a line, able to ignore line endings, reporting some kind of reasonable ascii-art and completely suitable for use in scripts from the line command?
There is another question for this: Using 'diff' (or something else) to get character level differences between text files , but this question was satisfied by lib, an example of which is a web tool, I would prefer something in the command line.
command-line comparison unix diff character
00prometheus
source share