simple shell script to compare two dirs recursively

Lowell Gilbert freebsd-questions-local at
Mon Nov 2 22:48:34 UTC 2020

Per olof Ljungmark <peo at> writes:

> Thank you for your responses.
> It is to keep track of a Wordpress plugin that we must do changes to
> in the php code, I'm just trying to figure out a way to apply our
> changes after the plugin is updated and our alterations are
> overwritten.
> In a way that is simple, that is.

"Simple" can be in the eye of the beholder.

"diff -r" is pretty simple for a lot of cases.
There are a lot of other diff-like tools, each with its own features...

For cases like this description (tracking local changes to a third-party
piece of code), my first instinct is to use a version control system,
but I'm already familiar with how to do that in my environments.

More information about the freebsd-questions mailing list