-print0

The find action that ends each file name with a null byte instead of a newline, for use with xargs -0.

In more detail

The null byte is the one character a file name can never contain. Paired with xargs -0, the list survives every name, including ones with spaces, quotes or newlines.

Example

find tricky -type f -print0 | xargs -0 -n 1 echo item:

Related terms

Taught in

References