Only include files that match a given pattern in a recursive diff
问题 How can you perform a recursive diff of the files in two directories (a and b): $ diff -r a b but only look at files whose name matches a given pattern. For example, using the same syntax available in the find command, this would look like: $ diff -r a b -name "*crazy*" which would show diffs between files with the same name and path in a and b, which have "crazy" in their name. Effectively, I'm looking for the opposite of the --exclude option which is available in diff. 回答1: Perhaps this is