On Tue, 19 Jul 2011 05:12:53 +0200, meino.cra...@gmx.de wrote:

> So when doing
> 
>     find /tmp | grep -Z tmp | xargs -0 md5sum
> 
> it should work comparable to
> 
>     find /tmp -print0 | xargs -0 md5sum
> 
> but for me it does not.

The man page specifically refers to the newline after a filename, you are
reading from stdin here so there is no filename. It only makes sense when
used with the -l option, as in the man page example.

grep -rlZ bar /foo

should give all the files in /foo that contain bar, terminated by NULs.


-- 
Neil Bothwick

You know the end of the world is near when the Spice Girls start
reproducing.

Attachment: signature.asc
Description: PGP signature

Reply via email to