- To: Daniel Freedman <freedman@xxxxxxxxxxxxxxxx>
- Subject: Re: [SLUG] Help, please, with shell scripting for computing checksums
- From: Ken Yap <ken@xxxxxxxxxx>
- Date: Wed Aug 9 14:39:18 2000
- Cc: Sydney Linux Users Group <slug@xxxxxxxxxxx>
- Reply-to: ken@xxxxxxxxxx (Ken Yap)
>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.