On Tue, Jun 25, 2002 at 09:55:54AM -0700, Mark G. Spencer wrote: > Is it possible to MD5 all the items in a directory tree using Linux? I > am on a Redhat 7.3 workstation. I have read the man and info file for > MD5SUM and also tried to run it against a directory without success. I > get the error "Is a directory" which is very self explanatory. > > So .. Is there another MD5 utility with more flexibility? I basically > need to MD5 every file individually in a large directory tree with the > output redirected to a text file showing the path, filename, and hash of > every file in that directory tree.
Hi Mark. Try the find command - you can iterate over a list that way. # find /path/to/follow -type f -exec md5sum {} \; > RESULTSFILE what you should get is something similar to this in RESULTSFILE: -- 9119cea153101100e2cb9f311605c8a3 /etc/sshd.daemontools/log/run d41d8cd98f00b204e9800998ecf8427e /etc/sshd.daemontools/log/supervise/lock 965ceb1e130f4c2e59832f69b2abb8ef /etc/sshd.daemontools/log/supervise/status 98ef74e5e603e1c8e356aba472179c66 /etc/sshd.daemontools/run d41d8cd98f00b204e9800998ecf8427e /etc/sshd.daemontools/supervise/lock 7b5df6124ed71465f7480c23c1864798 /etc/sshd.daemontools/supervise/status -- -- [ rich henning ] /"\ [ [EMAIL PROTECTED] ] \ / X support the ascii ribbon campaign against html e-mail / \