I have 2 directories , dir1 and dir2.
There are some directories in them. Suppose dir1 has a,b and c directories and dir2 has c,d and e.
I need a script that will find out the duplicate directories in dir1 and dir2,in this case, "c" and log it into a separate file,say,duplicate.lst.