Curl in bash


(Goog Jobs) #1

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) #2

really not the place to ask bash questions. Try google search:

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


(system) #3