curl in bash

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

curl in bash

Goog Jobs
Hi,  people!

curl -XGET 'localhost:9200/tapirwiki/tapirwiki/_search' -d '{
 "fields" : ["title"],
  "query" : {
    "query_string" : {
      "query" : "*"        
    }
  }
}'>>t.txt

how the pass the data from curl to a variable in bash  ? 
is there a function which help to find a substring and reture false or ture?
Reply | Threaded
Open this post in threaded view
|

Re: curl in bash

Paul Loy
really not the place to ask bash questions. Try google search: http://lmgtfy.com/?q=bash+assigning+variables

On Mon, Mar 5, 2012 at 12:17 AM, Goog Jobs <[hidden email]> wrote:
Hi,  people!

curl -XGET 'localhost:9200/tapirwiki/tapirwiki/_search' -d '{
 "fields" : ["title"],
  "query" : {
    "query_string" : {
      "query" : "*"        
    }
  }
}'>>t.txt

how the pass the data from curl to a variable in bash  ? 
is there a function which help to find a substring and reture false or ture?



--
---------------------------------------------
Paul Loy
[hidden email]
http://uk.linkedin.com/in/paulloy