Usage: cmpfiles [OPTION]... DIR1 DIR2 Compares the files in DIR1 to the files in DIR2 Compares the files (but not the file structure) by hashing each file in DIR1 and in DIR2, and then comparing them. It does not dereference symbolic links. With no options, it produces output in three sections. The first section contains the files that are in DIR1 and not in DIR2. The second section contains the files that are in DIR2 and not in DIR1. The third section contains the files that are in both DIR1 and DIR2. If the program encounters duplicate files inside DIR1 (or inside DIR2) it ignores these and outputs warnings to stderr. -1 Suppress first section (files in DIR1 but not in DIR2) -2 Suppress second section (files in DIR2 but not in DIR1 -3 Suppress third section (files in both DIR1 and DIR2) --md5 Use MD5 as hash function instead of SHA256 -h, --help Display this help and exit Examples: cmpfiles -12 dir1 dir2 Print only files in both dir1 and dir2. cmpfiles -3 dir1 dir2 Print files in dir1 and not in dir2, and vice versa. Somewhat inspired by comm(1).
The code for the project can be downloaded with git clone https://mvidell.se/cmpfiles.git