#!/usr/bin/env zsh set -euo pipefail LEDGER_PRICE_DB="/path/to/your/price/db/fx-rates.ledger" # Repeat for each currency you are interested in... echo P `getquote.clj USD` >> "${LEDGER_PRICE_DB}" echo P `getquote.clj RUB` >> "${LEDGER_PRICE_DB}" echo P `getquote.clj BTC` >> "${LEDGER_PRICE_DB}"