Elasticsearch: use command curl -XPUT over several indexes begining with the same word

Hello folks,

I want to run the following script over several indexes called 'index1-%{+YYYY.MM.dd}:
curl -XPUT http://localhost:9200/index1* -d '
{
"mappings" : {
"index1" : {
"properties" : {
"location": {
"type": "geo_point"
}
}
}
}
}'

But the previous script doesn't work due to '*'.
Do you know how to solve that ?

Regards

Try single or double quotes around 'http://...*'.

this works for me finaly

curl -XPUT http://localhost:9200/_template/template_name -d '

{
"template": "index1*",
"settings": {
....
},
"mappings" : {
"name_mapping" : {
"properties" : {
"geometry" : {
"type":"geo_shape",
"tree":"quadtree",
"precision":"1m"
},
...