ndiff

Compares two files and shows differences in unified or side-by-side format

brewmacoslinux
Try with needOr install directly
Source

About

Virtual package provided by nmap

Commands

ndiff

Examples

Compare two files and display differences$ ndiff file1.txt file2.txt
Show differences with unified output format$ ndiff -u file1.txt file2.txt
Compare files with verbose output showing all lines$ ndiff file1.txt file2.txt | grep '^[+-]'