I have a directory full of files that each contain some data saved with a CGI.pm "save" routine like so...
Alternatively, I've got a quickie little hack at home for handling images I've downloaded from the 'Net. I believe it's an Applescript (heh, been a while) that will MD5 the contents of a file, and then rename the file to the MD5 hash. In so doing, it'll overwrite any duplicate filenames (which would equate to the MD5 hashes being the same; thus the data is the same). Of course, that must mean that the CGI saved data is EXACTLY the same (field order, format, etc.) and that you don't care to lost the existing name of the files (though, you could just as easily MD5 the contents in memory and compare hashes, deleting dupes that way).
-- Morbus Iff ( you are nothing without your robot car, NOTHING! ) Culture: http://www.disobey.com/ and http://www.gamegrene.com/ Spidering Hacks: http://amazon.com/exec/obidos/ASIN/0596005776/disobeycom icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus