Thursday, October 16, 2008

Find folder differences

To compare two folders on your Mac, and find the files that differ:
diff -rq dirA/ dirB/ |grep -v -e '\.svn' -e '\.git'|sort

Remove the '-q' option to see line differences:
diff -r dirA/ dirB/ > diff.txt

1 comment:

ffthink said...

Just what I‘m searching for (almost).

I tried to compare two external drives (named T1 and P5) for folder differences.

Can you tell me the solution for that?

Thanks in advance!