Post by rsinaHow do we look for duplicate files in different directories on the hard
disk?
With same name or same contents different names.
Here how I files in one directory with another
#****************************************************************
#*
#* compare directory files contents
#*
#* You have to cd to where you want to start comparing
#*
#****************************************************************
for file in `find . -type f
do
_fn=${file:2}
echo -e "\nchecking $_fn\n"
diff -bBw $file ~bittwister/${_fn}
done
#***************** end script ************************************