I’ve just released Hash’em all: a Bash script which substitutes recursively the content of the files of a folder with their own sha1sum (changing it to compute a different chechsum is pretty trivial of course). It is a modified version of the already hacked script written by Kaz Kylheku.
As Kaz wrote in 2000:
What is nice about this is that you can embed the function into your shell script. The function changes the current working directory as it descends. So it can handle arbitrarily deep paths. Whereas paths generated by the
findcommand can cause a problem when they get too long; the kernel has a hard limit on the length of the string passed to theopen()and other system calls.
It uses sponge from the lovely moreutils tools… and no, the name of the script is not a tribute to the well known trash metal album. ![]()
If you enjoyed this post, make sure you subscribe to my RSS feed!
Hello,
I’m the owner and mantainer of http://www.hashemall.com, a website offering free online text and file hashing.
As you probably noticed, the name and domain of this website is the same as your script’s name. The domain was registered in May of 2007 and was operative almost immediately, so long before your script was published. Maybe you inspired to its name for your script name or it’s just a coincidence?
I’m writing this because some people told me they got confused by looking for “hash’em all! online hashing” on some search engines and getting this page. Maybe it could be a good idea to disambiguate?
Meanwhile, maybe this comment is going to clarify some people the difference.
Thanks.
Eugenio
Eugenio: I’ve never heard of your website before. So it is just a coincidence. I called my script hash_em_all because it generates a hash for each file it gets.