I\'d like to use \'diff\' to get a both line difference between and character difference. For example, consider:
File 1
abcde
ab
ccdiff is a convenient dedicated tool for the task. Here is what your example looks like with it:
By default, it highlights the differences in color, but it can be used on a console without color support too.
The package is included in the main repository of Debian:
ccdiff is a colored diff that also colors inside changed lines.
All command-line tools that show the difference between two files fall short in showing minor changes visuably useful. ccdiff tries to give the look and feel of
diff --colororcolordiff, but extending the display of colored output from colored deleted and added lines to colors for deleted and addedd characters within the changed lines.