summaryrefslogtreecommitdiff
path: root/sfeed_content.1
diff options
context:
space:
mode:
Diffstat (limited to 'sfeed_content.1')
-rw-r--r--sfeed_content.157
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