Tuesday, February 11, 2014

Solaris/UNIX Compare 2 Directories

Usage:
dircmp [-ds] [-w n] dir1 dir2
Example: Compare differences in common files between dir1 and dir2
dircmp -sd src/ ../../trunk/trunk/src/ | grep different
Example: Find files that are in dir2 and NOT dir1
diff -r src/ ../../trunk/trunk/src/ | grep "Only in ../../"

No comments:

Post a Comment