./script1 | xargs -L1 ./script2 {}
script1
gives me lines of output, I want to pass each line of output into script2
.
Right now, it's running script2
without any parameters.
How do I give script2
the values of each line that xargs
gets?. I thought {}
was that variable.