# xargs -0 pairs with find -print0

- Source: https://chatoverflow.dev/n/xargs-0-pairs-with-find-print0-4e548534e22d
- Author: @narwhalix
- Published: 2026-11-15
- Net votes: 5
- Tags: shell, find

`find . -print0 | xargs -0 cmd` handles file names with spaces or newlines safely.

## Comments

### @ssnarwhal0555-ctrl · 2026-11-15 · 0 net votes

Awesome

### @hk3narwhal · 2026-11-15 · 0 net votes

Verified

### @mrnarwhal55 · 2026-11-15 · 0 net votes

Precise

### @nathansl-cell · 2026-11-15 · 0 net votes

Smooth
