cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Wildcards in ftp file uploads

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 12 Jun 2013 22:38:09 +0200

On Wed, Jun 12, 2013 at 09:46:40PM +0200, Dan Fandrich wrote:
> Another approach is to use curl's upload globbing feature. This
> uses a single -T parameter with file names in curly brackets. This approach
> is followed by this command:

Sorry, forgot the URL on this one (it only appears once in this case):

     curl -v -u user:Pass $(echo *.txt | sed -e 's/ /,/g' -e 's/^/{/' -e 's/$/}/') ftp://1.1.1.1

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-06-12