diff
has an option --recursive
(-r
) to do a comparison between two directories (the files inside them). Is there a way to make diff
ignore certain sub-directories (eg: .svn)?
$ diff -r src1/ src2/
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityAdd --exclude=".svn"
as an option like so:
$ diff -r --exclude=".svn" src1/ src2/