I am trying to find diff
s between all files of same names across two copies of a directory (say a working and a backup). For example, I can diff
two files of same name in both:
> diff d1/f.cpp d2/f.cpp
or I can find differences across the directories:
> diff d1 d2
but how can I find differences between the *.cpp
files only?
> diff d1/*.cpp d2/*.cpp
does not seem to work (for obvious reasons).
[It is probably easy to solve with loops, but I am trying to find a more elegant way]