cat hosts | xargs -I{} ssh root@{} hostname
echo y | xargs -Ix echo x
As the article mentions, especially useful when combined with the -P flag for paralellism.
cat urlpaths.txt | xargs -I{} -P wget domain.com/{}
cat dirs.txt | xargs -I{} sh -c 'cd {}; touch file;'