diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2021-11-26 12:10:05 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2021-11-26 12:10:05 +0100 |
commit | 3cb7df56e0204bb8b0799a8317ef5a5f38802c7b (patch) | |
tree | e09077073cdcfc14d4202f6904935f2fa9de57bc /sfeed_content.1 | |
parent | 618a6561cd09f489e30ab652da1649a0d1fec1d5 (diff) |
import sfeed_curses
Import sfeed_curses into sfeed.
The files are based of the commit 8e151ce48b503ad0ff0e24cb1be3bc93d6fbd895
Diffstat (limited to 'sfeed_content.1')
-rw-r--r-- | sfeed_content.1 | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/sfeed_content.1 b/sfeed_content.1 new file mode 100644 index 0000000..a5bc4d4 --- /dev/null +++ b/sfeed_content.1 @@ -0,0 +1,57 @@ +.Dd July 25, 2021 +.Dt SFEED_CONTENT 1 +.Os +.Sh NAME +.Nm sfeed_content +.Nd view RSS/Atom content +.Sh SYNOPSIS +.Nm +.Op Ar +.Sh DESCRIPTION +.Nm +formats feed data (TSV) from +.Xr sfeed 1 +from stdin or for each +.Ar file +to stdout as plain-text content. +For HTML content it uses +.Xr lynx 1 +to convert it to plain-text. +At the end it uses the pager to view the output. +The +.Nm +script can be used by +.Xr sfeed_curses 1 +to view content. +.Sh ENVIRONMENT VARIABLES +.Bl -tag -width Ds +.It Ev PAGER +The pager used to view the content. +If it is not set it will use "less -R" by default. +.El +.Sh EXIT STATUS +.Ex -std +.Sh EXAMPLES +.Bd -literal +curl -s 'https://codemadness.org/atom_content.xml' | sfeed | sfeed_content +.Ed +.Pp +The output format looks like this: +.Bd -literal +Title: The title. +Author: The line with the author if it is set. +Category: The line with the categories if it is set. +Link: The line with the link if it is set. +Enclosure: The line with the enclosure if it is set. + +The content converted to plain-text. + +<form feed character> if there are multiple items. +.Ed +.Sh SEE ALSO +.Xr awk 1 , +.Xr less 1 , +.Xr lynx 1 , +.Xr sfeed_curses 1 +.Sh AUTHORS +.An Hiltjo Posthuma Aq Mt hiltjo@codemadness.org |