💾 Archived View for gemini.cyberbot.space › scripts › dailydigests.txt captured on 2024-07-09 at 00:32:07.
⬅️ Previous capture (2021-11-30)
-=-=-=-=-=-=-
#!/bin/bash TODAY=$(date +%Y-%m-%d) YESTERDAY=$(date -d yesterday +%Y-%m-%d) TWODAYS=$(date -d "2 days ago" +%Y-%m-%d) ANTENNA="gemini://warmedal.se/~antenna/filter/unVZVAAHNogZNmmpWxzjdsimQcBGGIUn" COMITIUM="gemini://gemini.cyberbot.space/feed.gmi" NEWS="gemini://rawtext.club/~sloum/geminews/npr/" tmp_d=$(mktemp -d) tmpcomitium1="$tmp_d/comitium1.txt" tmpcomitium2="$tmp_d/comitium2.txt" tmpantenna1="$tmp_d/antenna1.txt" tmpantenna2="$tmp_d/antenna2.txt" tmpnews="$tmp_d/news.txt" trap 'rm -rf -- "$tmp_d"' EXIT mkdir -p $HOME/dailydigest rm $HOME/dailydigest/* # comitium feed digest for today gmni -j once $COMITIUM | tail -n +9 | awk -v today="## $TODAY" -v yesterday="## $YESTERDAY" '$0 ~ today {flag=1} $0 ~ yesterday {flag=0} flag {print $2}' | awk '/gemini/ {print}' | xargs -d