# Error with double quote

**URL:** <https://discuss.elastic.co/t/error-with-double-quote/7282>\
**Category:** Elasticsearch\
**Created:** [April 10, 2012, 2:12pm UTC](https://discuss.elastic.co/t/error-with-double-quote/7282 "2012-04-10T14:12:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sushis](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@Sushis](https://discuss.elastic.co/u/Sushis)\
**Post date:** [April 10, 2012, 2:12pm UTC](https://discuss.elastic.co/t/error-with-double-quote/7282/1 "2012-04-10T14:12:14Z")

</div>

Hi,  
I'm starting with ES and i've done a litte script.

He need use 4 parameters, $1, $2, $3 and s4

It works for $3 and s4 but not for $1 and $2.

I explain :

I have in my terminal :

./script.sh string1 string2 indexname 5

and the script :

curl -XPUT localhost:9200/$3/toto/$4 '{  
tutu : "$1",  
tata : "$2"  
}'

It works but i have "$1" and "$2" in the place of string1 and string2

I tried with all quotes but i don't know how shell can use the inside of my vars.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:33am UTC](https://discuss.elastic.co/t/error-with-double-quote/7282/2 "2017-07-06T03:33:05Z")

</div>


