commit 25a61d07d1d754a1febc1c294d6dddbe7703cf7b parent 36cca159fde4ca7a7b0a5040f758995baebd7813 Author: Sven Möller <sven@svenmoeller.xyz> Date: Wed, 1 Jun 2022 20:45:33 +0200 news command local Diffstat:
M | bin/.local/bin/news | | | 8 | +++++++- |
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/bin/.local/bin/news b/bin/.local/bin/news @@ -1,4 +1,10 @@ #!/bin/sh +cd ~/.sfeed/feeds/ -curl -s https://news.svenmoeller.xyz/index.txt | $MENU\ +awk -F'\t' ' +BEGIN { OFS = "\t"; } +{ + $2 = "[" FILENAME "] " $2; + print $0 +}' * | sort -gr | head -n100 | sfeed_plain | $MENU\ | grep -Eo 'https?://\S+' | xargs -r $BROWSER