Binary package “docdiff” in ubuntu bionic

Compares two files word by word / char by char

 DocDiff compares two files and shows the difference. It can compare files
 word by word, char by char, or line by line.
 .
 It has several output formats such as HTML/XHTML, tty, Manued, or
 user-defined markup. It supports several encodings and end-of-line
 characters, including ASCII, UTF-8, EUC-JP, Shift_JIS, CR, LF, and CRLF.