sfeed_clean

2025-01-03T14:55:54Z

I really enjoy sfeed as my feed reader.

=> https://codemadness.org/git/sfeed/file/README.html

Amongst other thigs, I use it to display new entries when I first open a terminal, meaning automagically in tmux when my session pops up.

Recently, I noticed it was a little slower to display latest entries.

I had to clean up older entries and no longer subscribed feeds.

To do so, the README is very clear, but I had to gather things in a little script for later purpose :

#!/bin/sh
# remove previous feeds older than a week.

feeds_dir=~/.sfeed/feeds

for i in "${feeds_dir}"/*; do
	echo "${i}"
	awk -F '\t' -v "old=$(($(date +'%s') - 604800))" 'int($1) > old' < "${i}" > "${i}".new
	mv "${i}".new "${i}"
done


Comments?

=> mailto:prx@si3t.ch?subject=sfeed-clean | fremen@chat.si3t.ch

Proxy Information
Original URL
gemini://si3t.ch/log/2025-01-03-sfeed-clean.txt
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
492.107627 milliseconds
Gemini-to-HTML Time
0.500171 milliseconds

This content has been proxied by September (ba2dc).