summaryrefslogtreecommitdiff
path: root/sfeed_content.1
blob: 46432058d2daaadf7c07e886da30731283e4311d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.Dd December 22, 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.
.It Ev SFEED_HTMLCONV
The program used to convert HTML content to plain-text.
If it is not set it will use lynx 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