From 489a3b12923ea6dc6a278bed023a40ab2b5375f0 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sat, 26 Feb 2022 12:37:38 +0100 Subject: README: small rewording --- README | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README b/README index 398b96d..459f513 100644 --- a/README +++ b/README @@ -1015,8 +1015,8 @@ file: - - - -Running custom commands inside the program ------------------------------------------- +Running custom commands inside the sfeed_curses program +------------------------------------------------------- Running commands inside the sfeed_curses program can be useful for example to sync items or mark all items across all feeds as read. It can be comfortable to @@ -1035,13 +1035,12 @@ or forkexec((char *[]) { "syncnews.sh", NULL }, 1); break; -The specified script should be in $PATH or an absolute path. +The specified script should be in $PATH or be an absolute path. Example of a `markallread.sh` shellscript to mark all URLs as read: #!/bin/sh # mark all items/URLs as read. - tmp=$(mktemp) (cat ~/.sfeed/urls; cut -f 3 ~/.sfeed/feeds/*) | \ awk '!x[$0]++' > "$tmp" && -- cgit v1.2.3