--- /dev/null
+rss(1)
+
+# NAME
+rss - fetch rss feeds and launch sfeed_curses
+
+# SYNOPSIS
+rss [path to feeds]
+
+# DESCRIPTION
+Downloads feeds from the first argument (defaults to ~/org/feeds), and opens
+them in sfeed_curses. Depends on sfeed_curses and libxml2.
+
+# COPYRIGHT
+This is free and unencumbered software released into the public domain. For more
+information, please refer to <https://unlicense.org/>.
\ No newline at end of file
--- /dev/null
+#!/usr/bin/env sh
+
+file=${2:-$HOME/org/feeds}
+total=$(wc -l "$file" | cut -d " " -f 1)
+cachedir=${XDG_CACHE_HOME:-$HOME/.cache/}/sfeed
+
+mkdir -p "$cachedir"
+
+i=1
+while read -r feed; do
+ printf "Downloading %s\n%s/%s\r" "$feed" "$i" "$total"
+ curl -s "$feed" | xmllint --format - > /tmp/sfeed
+
+ title="$(grep -m 1 title /tmp/sfeed | xmllint --xpath "string(//title)" -)"
+ domain=$(echo "$feed" | cut -d/ -f 3)
+ fname=$(echo "${title:-$domain}" | sed 's|/|!|g' | head -c 25)
+ sfeed < /tmp/sfeed > "$cachedir/$fname"
+
+ i=$((i+1))
+done < "$file"
+
+rm /tmp/sfeed
+
+sfeed_curses "$cachedir"/*