simple shell script to compare two dirs recursively
doug
doug at fledge.watson.org
Mon Nov 2 20:22:39 UTC 2020
On Mon, 2 Nov 2020, 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.
>
> 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
diff -r --brief -s dir1/ dir2/
then awk is your best friend
More information about the freebsd-questions
mailing list