Last active
August 10, 2025 17:24
-
-
Save scateu/e7ba0409a636920b2479874639975a73 to your computer and use it in GitHub Desktop.
r2e-dedup.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# simple bash script to remove duplicated RSS items from rss2email | |
r2e list > r2e-list.txt | |
cat r2e-list.txt |cut -d'(' -f2 |awk '{print $1}' |sort |uniq -c | grep '2 http' > a | |
while read line; do cat r2e-list.txt |grep `echo $line |cut -d/ -f3` | tail -n1; done < a > b | |
cat b |cut -d: -f1|sort |uniq | xargs r2e delete | |
rm -i a b r2e-list.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment