Created
January 9, 2021 14:29
-
-
Save lakshyabatman/0cd78f530374a0e6247fb8d3d6cafdab to your computer and use it in GitHub Desktop.
Small script to show bitcoin price on terminal!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#A Shell script to fetch bitcoin price and display ! | |
#Author: Lakshya Khera | |
#Dependencies | |
# - jq https://stedolan.github.io/jq/ | |
# - lolcat https://github.com/busyloop/lolcat/ | |
# | |
bitcoin_price=$(curl -s https://api.coindesk.com/v1/bpi/currentprice.json | jq '.bpi.USD.rate ') | |
echo "Bitcoin price is ${bitcoin_price}" | lolcat | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment