all repos — dotfiles @ 3fd05b5e4ece7e7978bfa3e90fd6b5ec203e9aa1

linux dotfiles

bin/scripts/print_btc_price (view raw)

 1
 2
 3
 4
 5
 6
 7
#!/usr/bin/sh

url="https://api.coindcx.com/exchange/ticker"

btc_price=$(curl -sL $url | jq -r '"\(.[0].last_price) \(.[0].change_24_hour)"')

echo "󰠓 $btc_price"