bash: Cryptocurrency Prices From the Linux Terminal

#!/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

Miller

"Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON." Available in Debian derivatives via: $ sudo apt-get install miller Also has a nice 10 minute introduction.