Diff files from two folders
Monday, February 14, 2011 EST (Updated on: Sunday, July 24, 2011 EDT)
by: Eric Potvin
Here's a simple command to check the difference between two folders.
diff -qr /home/user/path/ /home/other_user/path/
For example, you are working on an SVN project X with a friend using different branches. You want to check which files he modified before committing your files.
You simply need to fun this command:
diff --exclude=.svn -qr /home/user/path/ /home/other_user/path/
Be the first to reply!
Share this article: