simple shell script to compare two dirs recursively

Valeri Galtsev galtsev at kicp.uchicago.edu
Mon Nov 2 18:14:19 UTC 2020



On 11/2/20 12:11 PM, Per olof Ljungmark wrote:
> Hi all,
> 
> I could *probably* cook this myself with some time and patience, but now 
> it is somewhat urgent, so if someone likes to share their already 
> working solution I would be most grateful.
> 

One I know exists since forever:

diff -r /path1 /path2

Valeri

> I need a *simple* shell (does not matter which) script run by cron that 
> recurses through two directories, compare all the files and produces 
> simple diffs IF there are any. I'm sure this is something that a lot of 
> you already did.
> 
> Thanks so much to all the nice folks on the list and FreeBSD in particular!
> 
> Per
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe at freebsd.org"

-- 
++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++


More information about the freebsd-questions mailing list