all repos — dotfiles @ dd2db8ae42d358267a4fcdc13fa096d431d0d08d

linux dotfiles

bin/scripts/print_btc_price

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"