aboutsummaryrefslogtreecommitdiff
path: root/feed
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-07-06 17:05:51 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2023-07-06 17:05:51 +0200
commit75f5072cc87db95eb533f3e9dab9643468141b19 (patch)
treefc42ccf297236569d557f6b788b02ae2e7fd4338 /feed
parent86665e7390763b74826e179d4968b4a3dc49226d (diff)
downloadscripts-75f5072cc87db95eb533f3e9dab9643468141b19.tar.gz
scripts-75f5072cc87db95eb533f3e9dab9643468141b19.zip
Add feed source name to menu line
Diffstat (limited to 'feed')
-rwxr-xr-xfeed9
1 files changed, 8 insertions, 1 deletions
diff --git a/feed b/feed
index 30e7498..3235fee 100755
--- a/feed
+++ b/feed
@@ -39,7 +39,14 @@ getnew() {
39} 39}
40 40
41showmenu() { 41showmenu() {
42 cat "$destdir"/* | $menu | awk '{print $NF}' | xargs $urlopener 42 for f in "$destdir"/*; do
43 ff=$(basename "$f")
44 if [ -s "$f" ]; then
45 while read -r line; do
46 printf '%20s %s\n' "$ff" "$line"
47 done < "$f"
48 fi
49 done | $menu | awk '{print $NF}' | xargs $urlopener
43} 50}
44 51
45while getopts "m:" opt; do 52while getopts "m:" opt; do

Generated with cgit - Back to sebastiano.tronto.net