xargs#

xargs with {}#

Use -I {} to define a placeholder ({}) for the input, allowing you to place the argument anywhere in the command.

# Rename all .txt files to .bak
ls *.txt | xargs -I {} mv {} {}.bak