ソース入力、input.txtがあります
a.txt
b.txt
c.txt
これらの入力を次のようにプログラムにフィードしたいと思います。
my-program --file=a.txt --file=b.txt --file=c.txt
だから私はxargsを使おうとしますが、運がありません。
cat input.txt | xargs -i echo "my-program --file"{}
それは与えます
my-program --file=a.txt
my-program --file=b.txt
my-program --file=c.txt
でも私はしたい
my-program --file=a.txt --file=b.txt --file=c.txt
何か案が?