Follow-up Comment #7, bug #10678 (project findutils):
Thanks James a lot! I found "sort -z" very useful.
My problem is that I need the intermediate $$newmd5.file, and the space in
the original filenames makes double quote(") inevitable to me, for example:
1) mkdir C#
2) cd C#
3) touch "C# programmer's guide.doc"
4) find -type f -print0 | xargs -0 -r md5sum
5) find -type f -print0 | xargs -0 -r md5sum \"{}\"
Command 4) and 5) output the same error message:
md5sum: {}: No such file or directory
md5sum: ./C#: No such file or directory
md5sum: programmer's: No such file or directory
md5sum: guide.doc: No such file or directory
I am using Windows XP/GnuWin32 and
GNU xargs version 4.1
As the $$newmd5.file is used elsewhere and there are too many files there, I
wish not walk through the directory twice (with -print and -print0
respectively).
I suggest options like "grep -F -f FILE", if new options were acceptable.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?10678>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-findutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-findutils