|
I'm trying to use PERL to get rid of duplicate files in a big, big ole directory with similar but different file names. I plan to use the file sizes to differentiate between the different files. For example, awful 5343.jpg awful 6064.jpg something 252.jpg something 1524.jpg something 1814.jpg something 2904.jpg something 4252.jpg something 5524.jpg something 6814.jpg something 7904.jpg Where there are only three actually different "something" pictures, and the "awful" pictures are the same. I plan to replace the numbers after the files - those are totally arbitrary - with the file size, so that I get, awful k10408k.jpg something k13394.jpg something k15304.jpg something k18708.jpg The loop that I intend to use. code:
Narpas fucked around with this message at 23:22 on Mar 22, 2008 |
# ¿ Mar 22, 2008 23:06 |
|
|
# ¿ May 7, 2024 12:55 |
|
Well, I knew, academically, about making a hash table, but I didn't realize they were implemented simply - I've always figured that they were needlessly complex for small scale tasks. Also, Sartak - I loved your LP Nethack, assuming that's, in fact, you.
Narpas fucked around with this message at 04:43 on Mar 23, 2008 |
# ¿ Mar 23, 2008 04:39 |