sfeed_aggro - sfeed-tools - Sfeed helper scripts. | |
git clone git://bitreich.org/sfeed-tools git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfr… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
sfeed_aggro (414B) | |
--- | |
1 #!/bin/sh | |
2 # Author: Evil_Bob | |
3 # | |
4 # sfeed aggregator alligator example: | |
5 # - prefix "[feedname] " before the item title. | |
6 # - sort by newest first. | |
7 # - show top 10 entries | |
8 | |
9 for f in ~/.sfeed/feeds/*; do | |
10 b="${f##*/}" | |
11 # prefix basename of file before title and output sfeed(5) forma… | |
12 LC_ALL=C awk -v "feed=$b" 'BEGIN {FS = OFS = "\t"; } { $2 = "[" … | |
13 done | \ | |
14 sort -k1,1rn | \ | |
15 sed 10q |