> Am 22.04.2026 um 09:35 schrieb Daniel Stenberg via curl-users > <[email protected]>: > > Hi, > > It struck me that when using globbing for uploads to a single URL, there is > no way to store the three responses in separate output files. Example: > > curl -T '{one,two,three}' https://upload.example/ -o save-output > > This command line makes curl overwrite the same target file multiple times > and afterwards only the last response remains. *sad face* > > As a comparison, downloading with globbing in the URL allows us to use pieces > of the glob in the output name: > > curl 'https://upload.example/{one,two,three}' -o 'save-#1' > > I have now made a first PR and attempt to allow us to fix the initial > omission by adding a way to refer to upload globs separately for the output > filename, using ! instead of #. Like this: > > curl -T 'file{1,2,3}' https://upload.example/ -o 'response-!1' > > Maybe we can think of a better way? Have not looked at the internals. As a user, I would expect `-o 'save-#1' to also work for uploads. (I assume the #1 counter only counts url globs and not upload globs, but that is an implementation detail, or?) > > https://github.com/curl/curl/pull/21407 > > -- > > / daniel.haxx.se || https://rock-solid.curl.dev > -- > Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users > Etiquette: https://curl.se/mail/etiquette.html -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.html
Re: Reference upload glob pieces in output filename
Stefan Eissing via curl-users Wed, 22 Apr 2026 00:50:16 -0700
- Reference upload glob pieces in output fil... Daniel Stenberg via curl-users
- Re: Reference upload glob pieces in o... Stefan Eissing via curl-users
- Re: Reference upload glob pieces ... Daniel Stenberg via curl-users
- Re: Reference upload glob pie... Bastian Jesuiter via curl-users
- Re: Reference upload glob... Daniel Stenberg via curl-users
- Re: Reference upload... Bastian Jesuiter via curl-users
- Re: Reference up... Daniel Stenberg via curl-users
- Re: Referenc... Daniel Stenberg via curl-users
- Re: Referenc... Jeremy Nicoll via curl-users
- Re: Referenc... Paul Gilmartin via curl-users
- Re: Referenc... Bastian Jesuiter via curl-users
- Re: Reference upload glob pie... Nicolas George via curl-users
