fork(4) download
  1. #!/bin/bash
  2.  
  3. echo xargs echo
  4. echo -e "param1\nparam2" | xargs echo
  5.  
  6.  
  7.  
  8. echo xargs -i{} echo {}
  9. echo -e "param1\nparam2" | xargs -i{} echo ={}=
  10.  
  11.  
  12.  
  13. echo xargs -L 1 -x -IPARAM echo
  14. echo -e "param1\nparam2" | xargs -L 1 -x -IPARAM echo =PARAM=
Success #stdin #stdout 0.02s 5268KB
stdin
Standard input is empty
stdout
xargs echo
param1 param2
xargs -i{} echo {}
=param1=
=param2=
xargs -L 1 -x -IPARAM echo
=param1=
=param2=