0
I trying to execute a Curl command (to ElasticSearch REST API) that looks like:
curl -X GET "localhost:9200/_search”?pretty -H 'Content-Type: application/json' -d'
{
"query": { "match_all": {} }
}
'
I get the angle bracket >
on each line, and can't figure out how to execute the command that I've entered from there. I found this page with some info, but I tried the suggestions, and it's not working.
Control + D
gives me:
-bash: unexpected EOF while looking for matching `"' -bash: syntax error: unexpected end of file
Writing EOF, then Control + D
gives me the same.
Oh, I'm wrong again. The only problem was the smart quote, which may have been added by a text editor along the way. Agh. – BBaysinger – 2018-06-04T18:28:13.813
FWIW, you should not edit your question to answer the question. That is not how this site works. If you somehow self-solve a question, feel free to post an answer and all is good. – JakeGould – 2018-06-04T18:31:27.853