How can I pass all arguments with xargs in middle of command in linux

Use -I option:

echo prefix | xargs -I % echo % post

Output:

prefix post

Leave a Comment