xxxxxxxxxx
# Basic syntax:
command_1 | xargs -I {} sh -c "command_2 \$(command_3 {})"
# Where:
# - -I specifies a string that will be replaced by the stdin when found.
# This is useful for controlling where the piped content appears in the
# xargs command
# - sh -c runs the shell command in quotes which can be used to do command
# substitution in xargs
# - the command inside $() is run first and its output is used by command_2
# Example usage:
echo "word1 word2" | xargs -I {} sh -c "echo \$(echo {} | tr a-z A-Z)"