# 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 : ```sfeed_clean #!/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 => xmpp:fremen@chat.si3t.ch?join fremen@chat.si3t.ch