Any Catalina mac utility to compare two folders?

shankar2

macrumors 6502a
Original poster
Jun 7, 2009
942
47
Hi so I have some books in two folders and I want to see which one is missing from one folder, compared to the other. Is there any simple yet powerful utility to do this task? Please advise. Thanks!
 

shankar2

macrumors 6502a
Original poster
Jun 7, 2009
942
47
Basically I want to copy from 2 folders, files with extension .EPUB only (ignore other extension) into a 3rd folder .
 

revmacian

macrumors 65816
Oct 20, 2018
1,258
1,015
USA
The diff app is present in Catalina. Open the Terminal and use diff as follows:
(remember to replace "/path/folder1" and "/path/folder2" with their respective paths or drag folders into the Terminal window)

For simple differences:
Code:
diff /path/folder1 /path/folder2

For recursive differences:
Code:
diff -r /path/folder1 /path/folder2

To learn more about how to use diff:
Code:
man diff
Press the "q" key to exit the man app.
 

bogdanw

macrumors 6502
Mar 10, 2009
398
233
Basically I want to copy from 2 folders, files with extension .EPUB only (ignore other extension) into a 3rd folder .
Why don't you use Finder? Open the first folder, type .epub in the search box and drag&drop the files into the third folder. Do the same for the second folder. You will be prompted if there are files with the same name.
 
  • Like
Reactions: bernuli

shankar2

macrumors 6502a
Original poster
Jun 7, 2009
942
47
I also found that the terminal cmd find along with copy works fine! It needed to work with subfolders within the main folder too.