xargs Builder

Command

    About this tool

    Build an xargs command and see what each flag means. Choose how the input is split, how many items go to each command, how many commands run at once, and whether a replace string is used. The page writes the command and lists a plain-language note for every flag it added.

    Questions

    Why pair -0 with find -print0?
    The null byte is the only character that cannot appear in a file name, so find -print0 and xargs -0 pass paths with spaces or newlines through without splitting them into extra arguments.
    What does -I do to -n?
    -I implies one item per command, so -n has no effect once -I is set. The builder drops -n when you turn on the replace string.
    Is it safe to run commands in parallel?
    Only if the command does not depend on order and does not write to the same output. -P speeds things up, but two jobs writing the same file will race.