askalee
7/5/2018 - 3:35 AM

xargs

Generate multiple commands by only appending limited number of arguments

echo a b c | xargs -n1 rm

rm a
rm b
rm c

Append all arguments

echo a b c | xargs rm

rm a b c

test

echo a b c | xargs -I% -n1 echo test/%

echo test/a
echo test/b
echo test/c