1

I want to perform the following command in command line :

$ md5sum $(find . -type f)

But this would cause problems when it encounter files with spaces in filenames :

md5sum: Kaufmann: No such file or directory
md5sum: Mobile: No such file or directory
md5sum: 3D: No such file or directory
md5sum: Graphics: No such file or directory
0

1 Answer 1

4

Do this way instead:

find . -type f -exec md5sum {} \;

This way spaces in the matched filenames will be handled correctly.

Not the answer you're looking for? Browse other questions tagged or ask your own question.