Buy commercial curl support. We
help you work out your issues, debug your libcurl applications, use the API,
port to new platforms, add new features and more. With a team lead by the
curl founder Daniel himself.
Re: Reference upload glob pieces in output filename
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Daniel Stenberg via curl-users <curl-users_at_lists.haxx.se>
Date: Wed, 22 Apr 2026 11:19:44 +0200 (CEST)
On Wed, 22 Apr 2026, Daniel Stenberg via curl-users wrote:
>> curl -T 'file{<glob1>1,2,3}' https://upload.example/{<glob2>this,that} -o
>> 'response-#<glob1>-#<glob2>'
>
> I like it a lot.
Sample command line from my current dev tree:
$ ./src/curl 'localhost/{<hey>one,two}' -o 'dump-#<hey>'
$ ls -l dump-*
-rw-rw-r-- 1 dast dast 311 Apr 22 11:15 dump-one
-rw-rw-r-- 1 dast dast 311 Apr 22 11:15 dump-two
Date: Wed, 22 Apr 2026 11:19:44 +0200 (CEST)
On Wed, 22 Apr 2026, Daniel Stenberg via curl-users wrote:
>> curl -T 'file{<glob1>1,2,3}' https://upload.example/{<glob2>this,that} -o
>> 'response-#<glob1>-#<glob2>'
>
> I like it a lot.
Sample command line from my current dev tree:
$ ./src/curl 'localhost/{<hey>one,two}' -o 'dump-#<hey>'
$ ls -l dump-*
-rw-rw-r-- 1 dast dast 311 Apr 22 11:15 dump-one
-rw-rw-r-- 1 dast dast 311 Apr 22 11:15 dump-two
-- / daniel.haxx.se || https://rock-solid.curl.dev -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2026-04-22