2
1
Given the md5sum of a file, I want to know if anywhere else in the directory tree is another file with the same md5sum (but maybe under a different name). How can I do that in bash?
P.S.: To emphasize, this should work for the entire tree below a given directory, i.e. must work recursively not just in the current directory.
Thanks slhck looks very interesting, but apparently my md5 command has no -q option; neither has my md5sum command. I am using Xubuntu. Also what is the {} \ for? – None – 2013-10-02T06:06:22.987
Sorry, I had the wrong BSD
md5
tool here. On Linux you needmd5sum
. I'll correct my post when I'm back on a computer. The {} is the file path for each file found. It gets passed tosh
. The ; simply ends theexec
call. – slhck – 2013-10-02T06:34:38.787