simple shell script to compare two dirs recursively

John Levine johnl at
Mon Nov 2 23:22:40 UTC 2020

In article <66b0d570-4e46-7971-5d30-33256feeda55 at> you write:
>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.

I'd try using diff -r -C3 to find the diffs and patch to apply the diffs.

Patch is pretty good at finding where the diffs go if the files have
changed a little.

John Levine, johnl at, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail.

More information about the freebsd-questions mailing list