Skip to content

Commit

Permalink
curl.1: expand on how multiple uses of -o looks
Browse files Browse the repository at this point in the history
Suggested-by: Dan Jacobson
Issue: curl#1097
  • Loading branch information
bagder committed Nov 1, 2016
1 parent 07b95ea commit b744950
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/curl.1
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,17 @@ or use several variables like:

curl http://{site,host}.host[1-5].com -o "#1_#2"

You may use this option as many times as the number of URLs you have.
You may use this option as many times as the number of URLs you have. For
example, if you specify two URLs on the same command line, you can use it like
this:

curl -o aa example.com -o bb example.net

and the order of the -o options and the URLs doesn't matter, just that the
first -o is for the fir URL and so on, so the above command line can also be
written as

curl example.com example.net -o aa -o bb

See also the \fI--create-dirs\fP option to create the local directories
dynamically. Specifying the output as '-' (a single dash) will force the
Expand Down

0 comments on commit b744950

Please sign in to comment.