Skip to Content
gnux

-0, --null

Items are separated by a NUL, not whitespace; disables quote and backslash processing and logical EOF processing.

An option of xargsx.

Usage

xargsx -0 [COMMAND [INITIAL-ARGUMENT]...]
xargsx --null [COMMAND [INITIAL-ARGUMENT]...]

Details

ShortLongValueDefaultMeaning
-0--nullnoneitems are separated by a NUL, not whitespace; disables quote and backslash processing and logical EOF processing

Examples

Remove the files a search found, whatever characters their names hold

findx . -name '*.tmp' -print0 | xargsx -0 rmx -f

Do nothing at all when the search finds no file

findx . -name '*.orig' -print0 | xargsx -0 -r rmx

Checksum many files four commands at a time

findx . -type f -print0 | xargsx -0 -n 50 -P 4 sha256sumx

Help in the terminal

gnux help xargsx --null

On this page