Curl in bash

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?

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 googcheng@gmail.com 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
paul@keteracel.com
http://uk.linkedin.com/in/paulloy