water cooler :: find help



I am trying to get an  md5 of all files.

find . -exec md5sum {} ;

gives an error,

exec needs an argument

Any ideas what I am doing wrong?

Thanks Phil

I think you just need to use md5sum (esp. the -r option)
find . -exec md5sum '{}' > md5sums \ ;

The brackets and the ; are shell keywords, they need to be escaped for find


original here.