On Wed, 9 Aug 2000, Daniel Freedman wrote:

> Maybe I'm being immensely stupid, but I don't see an easy way to
> accomplish this with md5sum itself (it responds to directories "md5sum:
> bin: Is a directory"), and I'm evidently not adept enough with shell
> scripting to make this work.  I actually looked through the source code to
> 
> Any suggestions (or script fragments) would be greatly appreciated.

Would this do

        find <directory> -type f | xargs md5sum

This will go and find all files in and below the named <directory> and
execute md5sum against them. It will only do normal files, not directories
which gets around your problems. Rather than making md5sum more complex to
"unix" way to do it is patch a couple of specific commands together.

Hope that helps and welcome to SLUG.

Rodos



--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to