dotfiles/.scripts/bitcoin.sh
2017-03-04 14:31:11 -08:00

5 lines
164 B
Bash
Executable file

#!/usr/bin/env bash
price=$(curl -sSL https://coinbase.com/api/v1/prices/historical | head -n 1 | sed 's|^.*,|$|' | sed 's|\(\.[0-9]$\)|\10|')
echo "BTC: $price"