null byte
The character with value zero, which can never appear inside a Unix file name and so makes a safe separator between names.
In more detail
find -print0, xargs -0, sort -z and read -d '' all use it for lists of file names. It is not the same as an empty string or the /dev/null device.
Related terms
- -print0 — The find action that ends each file name with a null byte instead of a newline, for use with xargs -0.
- xargs — The command that reads items from its standard input and runs another command with them as arguments, in batches.
- newline — The invisible character that ends a line of text, written \n in most programming languages.
Taught in
- Conditionals: test, Brackets, Double Brackets, case — Bash Scripting & Command Line Automation
- find And xargs — Bash Scripting & Command Line Automation