Running multiple commands with xargs
cat a.txt | xargs -d $’\n’ sh -c ‘for arg do command1 “$arg”; command2 “$arg”; …; done’ _ …or, without a Useless Use Of cat: <a.txt xargs -d $’\n’ sh -c ‘for arg do command1 “$arg”; command2 “$arg”; …; done’ _ To explain some of the finer points: The use of “$arg” instead of % … Read more