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
Post a Comment