#!/usr/bin/env bash set -euo pipefail IN_DIR="${1:-.}" for file in "${IN_DIR}"/*.txt; do rainbowrss --feeds "${file}" --out "$(basename "${file}" ".txt").html" || true done