cmd1 | cmd2
will call cmd2 only once with cmd1 output as argument. What i want is call cmd2 one by one with each line of cmd1 output as argument. Maybe something looks like:
cmd1 | map cmd2
I know I can write one by myself, just want to know is there a built-in support already?
cmd1 | xargs -l cmd2
This is my favorite way. Thank you Paulo Ebermann!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With