xargs

$ echo 1 2 3 4 | xargs echo

# equivalent to:
echo 1 2 3 4
$ echo 1 2 3 4 | xargs -n 1 echo

# equivalent to:
echo 1
echo 2
echo 3
echo 4
$ echo 1 2 3 4 | xargs -n 2 echo

# equivalent to:
echo 1 2
echo 3 4
# Specify replace-str
$ echo 1 2 3 4 | xargs -I {} echo '{} numbers'

# equivalent to
echo '1 2 3 4 numbers'
$ echo 1 2 3 4 | xargs -p echo   # Prompt
$ echo 1,2,3,4 | xargs -d, echo  # Set delimiter to ','

# Use null character as input terminator, useful when input contains white space.
# For example, 'find -print0' supports this
$ echo 1 2 3 4 | xargs -0 echo

# Delete files whose names contain 'conflicted'
$ find . -name '*conflicted*' -print0 | xargs -0 rm