All Questions
2 questions
1
vote
2
answers
22k
views
Parse curl response with sed
I'm trying to call a JSON API with the following curl command on macOS:
curl https://api.ipify.org?format=json
It returns something like this:
{"ip":"xxx.xxx.xxx.xxx"}
I would like to extract the ...
1
vote
1
answer
649
views
How to grep multiple lines?
Grep understands this :
curl https://api.coinmarketcap.com/v1/ticker/ | grep "clipper-coin"
But not this :
curl https://api.coinmarketcap.com/v1/ticker/ | grep "{*clipper-coin*}"
The output I ...