#!/bin/bash printf -v coin '%s' -1 # crypto.sh bitcoin price() { # A function that pulls cryptocurrency price data from coingecko curl -X 'GET' 'https://api.coingecko.com/api/v3/simple/price?ids='"$1"'&vs_currencies=usd' \ -H 'accept: application/json' 2> /dev/null | # sends download data to /dev/null sed 's/.*usd"://' | # Removes everything before the price sed 's/..$//' | # Removes back two }} … Continue reading bash: Cryptocurrency Prices From the Linux Terminal
