script: rename files by using cksum
I have to do a very simple task but being a newbie, it‚Äôs becoming a challenge
Here is what I have to do:
1. I have a bunch of *.html files ‚Äì most of them are duplicates: file1.html, file6.html and file12.html could be duplicates.
2. I have to eliminates the duplicates by using the cksum and rename the files by using the ‚Äòsum‚Äô value (sum.html)
$ cksum file1.html
339238769 1918 file1.html
$ cp file1.html 339238769.html
My script should be able to do this for several folders:
Thanks for any help.