diffutils

File comparison utilities for finding differences between files

brewmacoslinux
Try with needOr install directly
Source

About

File comparison utilities

Commands

diffcmpdiff3sdiff

Examples

Compare two text files and show differences$ diff file1.txt file2.txt
Show differences side-by-side with context$ sdiff -w 120 file1.txt file2.txt
Compare three files to find common and unique lines$ diff3 file1.txt file2.txt file3.txt