Important flags1:

flag description
-d algorithm for white space splitting
-P run invocations in parallel
-n how many arguments to pass the process

For whitespace splitting a couple options:

flag description
(default) split on words
-d $'\n' split on lines
-0 unsafe data (null tokens)

Interpolate value

# place argument somewhere besides the end
  xargs -I{} cp {} ./dest

macOS Specific

Delimit by line

OUTPUT | tr '\n' '\0' | xargs -0 -n 1 -- echo "HELLO"


An Opinionated Guide to xargs. at https://www.oilshell.org/blog/2021/08/xargs.html (2021).

Links to this note