Initial sfeed-tools repository. - sfeed-tools - Sfeed helper scripts. HTML git clone git://bitreich.org/sfeed-tools git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/sfeed-tools DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit 654e29685a5463428886124b2c752750530664b2 HTML Author: Christoph Lohmann <20h@r-36.net> Date: Wed, 23 Aug 2023 12:37:34 +0200 Initial sfeed-tools repository. Diffstat: A README.md | 8 ++++++++ A sfeed_aggro | 15 +++++++++++++++ 2 files changed, 23 insertions(+), 0 deletions(-) --- DIR diff --git a/README.md b/README.md @@ -0,0 +1,8 @@ +# Sfeed Tools + +People are posting useful helper scripts for sfeed(1): + + git://bitreich.org/sfeed + +Here is a repository to aggregate those scripts. + DIR diff --git a/sfeed_aggro b/sfeed_aggro @@ -0,0 +1,15 @@ +#!/bin/sh +# Author: Evil_Bob +# +# sfeed aggregator alligator example: +# - prefix "[feedname] " before the item title. +# - sort by newest first. +# - show top 10 entries + +for f in ~/.sfeed/feeds/*; do + b="${f##*/}" + # prefix basename of file before title and output sfeed(5) format. + LC_ALL=C awk -v "feed=$b" 'BEGIN {FS = OFS = "\t"; } { $2 = "[" feed "] " $2; print $0; }' < "$f" +done | \ +sort -k1,1rn | \ +sed 10q