1
0
nixfiles/pkgs/feeds-dir/feeds-dir.sh

10 lines
177 B
Bash
Executable File

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