Skip to main content
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Source Link

Michael's answeranswer is right, and should sort out your problem. Running

cat file | xargs -I % curl http://example.com/persons/%.tar

will download files bob.tar john.tar. sue.tar as expected.

BUT: cat here is useless

rather use:

<file xargs -I % curl http://example.com/persons/%.tar

Michael's answer is right, and should sort out your problem. Running

cat file | xargs -I % curl http://example.com/persons/%.tar

will download files bob.tar john.tar. sue.tar as expected.

BUT: cat here is useless

rather use:

<file xargs -I % curl http://example.com/persons/%.tar

Michael's answer is right, and should sort out your problem. Running

cat file | xargs -I % curl http://example.com/persons/%.tar

will download files bob.tar john.tar. sue.tar as expected.

BUT: cat here is useless

rather use:

<file xargs -I % curl http://example.com/persons/%.tar

Michael's answer is right, and should sort out your problem. Running

cat file | xargs -I % curl http://example.com/persons/%.tar

will download files bob.tar john.tar. sue.tar as expected.

BUT: Cat is Uselesscat here is useless

rather use:

<file xargs -I % curl http://example.com/persons/%.tar

Michael's answer is right, and should sort out your problem. Running

cat file | xargs -I % curl http://example.com/persons/%.tar

will download files bob.tar john.tar. sue.tar as expected.

BUT: Cat is Useless

rather use:

<file xargs -I % curl http://example.com/persons/%.tar

Michael's answer is right, and should sort out your problem. Running

cat file | xargs -I % curl http://example.com/persons/%.tar

will download files bob.tar john.tar. sue.tar as expected.

BUT: cat here is useless

rather use:

<file xargs -I % curl http://example.com/persons/%.tar
edited body
Source Link
Stefan
  • 26.1k
  • 41
  • 103
  • 127

Michael's answer is right, and should sort out your problem. Running

cat file | xargs curl -I % curl http://example.com/persons/%.tar

will download files bob.tar john.tar. sue.tar as expected.

BUT: Cat is Useless

rather use:

<file xargs curl -I % curl http://example.com/persons/%.tar

Michael's answer is right, and should sort out your problem. Running

cat file | xargs curl -I % http://example.com/persons/%.tar

will download files bob.tar john.tar. sue.tar as expected.

BUT: Cat is Useless

rather use:

<file xargs curl -I % http://example.com/persons/%.tar

Michael's answer is right, and should sort out your problem. Running

cat file | xargs -I % curl http://example.com/persons/%.tar

will download files bob.tar john.tar. sue.tar as expected.

BUT: Cat is Useless

rather use:

<file xargs -I % curl http://example.com/persons/%.tar
added 96 characters in body; edited body
Source Link
Stefan
  • 26.1k
  • 41
  • 103
  • 127
Loading
Source Link
Stefan
  • 26.1k
  • 41
  • 103
  • 127
Loading