xargs mit mehreren Argumenten
Ich habe einen Quelleneingang, input.txt
a.txt
b.txt
c.txt
Ich möchte diese Eingaben wie folgt in ein Programm einspeisen:
my-program --file=a.txt --file=b.txt --file=c.txt
So versuche ich, @ zu verwend xargs, aber ohne Glück.
cat input.txt | xargs -i echo "my-program --file"{}
Es gib
my-program --file=a.txt
my-program --file=b.txt
my-program --file=c.txt
Aber ich möcht
my-program --file=a.txt --file=b.txt --file=c.txt
Irgendeine Idee