-
Notifications
You must be signed in to change notification settings - Fork 9
Examples
Aaron Riekenberg edited this page Aug 19, 2023
·
38 revisions
Suppose we have an input CSV file of http method and URL, this could be used to make parallel calls with curl
. Here {method} and {url} are named regular expression capture groups:
$ cat >./test.csv <<EOL
GET,http://example.com/endpoint1
PUT,http://example.com/endpoint2
POST,http://example.com/endpoint3
EOL
$ cat test | rust-parallel -r '(?P<method>.*),(?P<url>.*)' curl -X {method} {url}