2010年1月4日 星期一

Linux Command - diff

// Compare the difference between folder_a and folder_b that exclude some files contains the specified pattern
# diff -Nur --exclude=CVS --exclude="*.pl" --exclude=PL --exclude=Release --exclude=cxxtest --exclude="*.sln" --exclude="*.vcproj" --exclude="Release*" --exclude="readme*" ./folder_a ./folder_b

diff -Nurp --exclude="\.svn" /Path/to/Folder1 /Path/to/Folder2

沒有留言: