I use curl I want to get a certain phrase of it, the problem is that the entire file (that I am displaying using curl) consists of only 1 line.
The phrase I want to extract form this file begins always with {"name":"headline","link":
and it always ends with }}.
So the question is if there is any method to tell grep that it should display all the phrases which begin with {"name":"headline","link": until they end with the next }}?
curl http://example.org/file.txt | grep ?
BTW:
curl http://example.org/file.txt | grep "\{\"name\"\:\"headline\"\,\"link\"\:\"http\:\/\/"
Display the entire text file because it’s just a one liner.
This will do
This will give you a complete list of urls