27 Sep
2006
27 Sep
'06
16:30
I tried it and work but only partially. I get error messages when the file/directory names contain white spaces. How can I make it work with these files too?
a) Whitespace in filenames is evil. It causes all sorts of problems.
It's not. You just don't know how to handle it correctly. :)
b) find . -type f -print0 | xargs -0 md5sum
-print0 uses a NULL character to separate filenames, intead of a newline, and -0 tells xargs to expect that as input.
To be exact, the thing is called NUL ('\0'), not NULL ((void *)0). Jan Engelhardt --