#!/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
Tag: sed
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.
An Introduction To Data Science On The Linux Command Line
...provide[s] the reader with a brief overview for a number of different Linux commands. A special emphasis will be placed on explaining how each command can be used in the context of performing data science tasks. The goal will be to convince the reader that each of these commands can be extremely useful, and to … Continue reading An Introduction To Data Science On The Linux Command Line
