Skip to main content

All 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 ...
Imnl's user avatar
  • 141
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 ...
pxoto's user avatar
  • 183