unix - How can I make an array from curling a website? -


how can make array link?

i trying with:

ifs=$'\n' array=($(curl http://www.site.com)) 

but keep getting syntax error

you have:

array=(($curl http://www.site.com))        ^^ 

move $ slightly:

$ array=($(curl http://www.example.com))          ^ $ echo ${array[3]}     <title>example domain</title> 

Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -