script to search all the directories

Hi there,

Is there any command or script to search all the directories for duplicated files?
Thanks,

Abrahim

Write your own script. See man pages on 'diff', 'cmp', ... In the script, compare each file with every other. If they match, ACTION1, else, CONTINUE.

There is no command to do this... but as 'lucifer' here as suggested you can write a script. Keep in mind in this script that you may be dealing with both flat files and binary files..... they will use different commands for comparisons.

For larger files that cannot be handled by diff you can use bdiff.
For more details, use man bdiff.

-Nisha