diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-11-01 10:24:49 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-11-01 10:24:49 +0100 |
commit | b744950f431d911e82097c2e989b41c3e0c56e8b (patch) | |
tree | eb61359e73b1cd0ed037671c93b2f845297ef1cd | |
parent | 07b95ea2680990055d12c935994044dfa24d8e9b (diff) |
curl.1: expand on how multiple uses of -o looks
Suggested-by: Dan Jacobson
Issue: https://github.com/curl/curl/issues/1097
-rw-r--r-- | docs/curl.1 | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/curl.1 b/docs/curl.1 index 5843500ba..b798d6f9e 100644 --- a/docs/curl.1 +++ b/docs/curl.1 @@ -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 |