Useful diff
diff -wBr folder1 folder2 | diffstat
... will show the diffstat.
diff -wBr folder1 folder2 | view -
... will show the actual diff changes in a read-only vi environment.
`diff -wBr --exclude='.svn' --exclude='.git' folder1 folder2 | view -
... will show the actual diff changes in a read-only vi environment while excluding svn and git folders.
Learn something!
-w = Ignore all white space.
-B = Ignore changes whose lines are all blank.
-r = Recursively compare any subdirectories found.
--exclude='something' = Ignore 'something' from diff search.
Written by Ali Karbassi
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Diff
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#