I am wondering if there is a way to get Automator to compare two directories and sort the results in macOS Big Sur?
I have two large directories sitting up in a local network. I want to compare the contents of the two and find any folders/files that aren't in one or other and/or are different versions.
I had planned to just do it through command line using diff -rq
. But, I was wondering if there is a way to run it through Automator and have it at least display the differences (but ideally sort for me!)?
diff -rq
. I'd use Terminal and redirect the output to a file and then use the various command line utilities available to process the output, i.e.awk
,perl
,grep
,sed
, etc. It depends out how you want to output sorted. – user3439894 Oct 22 '21 at 22:45diff
and also read the manual page ofdiff
. https://apple.stackexchange.com/questions/10252/what-directory-comparison-tools-can-i-use-on-os-x/228548#228548 -- You can read the manual page forcommand
in Terminal by typingman command
, then press enter, or for easier reading, just typecommand
and then right-click on it and select: Open man Page – user3439894 Oct 22 '21 at 22:50