3 ms·
I prefer curl -s "https://api.coinmarketcap.com/v1/ticker/?convert=$1" | jq ".[0] .price_$1" | sed 's/\"//g' for silent curl and no quotes in output. Unf
by mallaidh 9y ago
I prefer
curl -s "https://api.coinmarketcap.com/v1/ticker/?convert=$1" |
jq ".[0] .price_$1" | sed 's/\"//g'
for silent curl and no quotes in output. Unfortunately, this does add a third dependency to the script.