scripts

My personal collection of scripts
git clone git://src.gearsix.net/scripts
Log | Files | Refs | Atom | README | LICENSE

commit 90e41fb5c6691b8e9105c5c983101aa22ef4072e
parent 50960e3cbb76eb545130f457b3115416c2d32305
Author: gearsix <gearsix@tuta.io>
Date:   Fri,  9 Apr 2021 13:05:36 +0100

added rsfeed

Diffstat:
Asrc/rsfeed.sh | 17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/rsfeed.sh b/src/rsfeed.sh @@ -0,0 +1,17 @@ +#!/bin/bash +## rsfeed (read sfeed) +## DESCRIPTION: sfeed_update, open sfeed_html in browser +## DEPENDENCIES: sfeed +## Notes: by default html files are written to ~/docs/feeds (named after date), set $RSSFEED to modify this + +TIMESTAMP=$(date +%F) + +FEEDS=~/docs/feeds +if [[ ! -z $RSSFEED ]]; then FEEDS=$RSSFEEDS; fi + +echo $FEEDS +echo $FEEDS/$TIMESTAMP.html + +sfeed_update +sfeed_html ~/.sfeed/feeds/* > $FEEDS/$TIMESTAMP.html +xopen $FEEDS/$TIMESTAMP.html