Linux Mastering Development

how to use seq with xargs to curl request

I’m working on curl commmand
that performs an action based upon parms value

curl ''

id value i want to pump dynamically so

seq 1 10 | xargs -I + curl ''

In output I’m getting

curl ''

curl ''

curl ''

how can I pass it as value I also tried

seq 1 10 | xargs -I + curl ''`< <(printf '+\n' $(seq 1 10)

I’m getting the same results.


placed ' around -I '~' and its working now.

Leave a Reply

Your email address will not be published. Required fields are marked *