Need quick help with diff files in current directory!!!

i have a problem that needs to be solved with CSH , SED or AWK as soon as possible.

I need to write a program which creates a directory called backup (if it does not exist). The program then compares all the ordinary files in the current directory and if two files are identical, it moves one of them to the backup directory. The program should finally display the names of the files moved or the message: �No duplicate files found� if no two files are identical.

i have been trying out with the diff and cmp command. but i am not able to write a script to compare all the files in the current directory. can anyone help me out here?

Please read our rules. And notice rule 6:
(6) Do not post classroom or homework problems.