Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] Help, please, with shell scripting for computing checksums


>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
>
>Any suggestions (or script fragments) would be greatly appreciated.

Observe the Unix approach, putting together small tools for a special
job:

	find bin -type f -print | xargs md5sum

find generates on standard output a list of plain files starting from
directory bin, xargs takes standard input and gives them as arguments to
the specified program.