xargs¶
Pipe file-paths from find¶
-print0 tells find to produce null-terminated strings. -0 tells xargs to parse strings from stdin as null-terminated. Such behaviour helps to handle strings with spaces, since xargs parses strings based on spaces by default so filename like example file.txt is interpreted as two files: example and file.txt.
Interpret each line individually instead of piping them all at once¶
-n sets the maximum number of arguments taken from standard input for each invocation.
Placeholders¶
-I{} specifies a placeholder. When using -I -n is implied.
Parallel mode¶
-P runs at most maxprocs invocations of utility at once.