Skip to content

Instantly share code, notes, and snippets.

@matthewpoer
Created June 19, 2019 20:21
Show Gist options
  • Save matthewpoer/0c09551e38c878881cdb292a51d4690c to your computer and use it in GitHub Desktop.
Save matthewpoer/0c09551e38c878881cdb292a51d4690c to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# USD $ 9168.57
curl -s "https://api.coindesk.com/v1/bpi/currentprice.json" | jq .bpi.USD.rate_float | rev | cut -c 3- | rev | xargs echo "USD $"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment