sfeed_content.1 (1336B) - raw


      1 .Dd December 22, 2021
      2 .Dt SFEED_CONTENT 1
      3 .Os
      4 .Sh NAME
      5 .Nm sfeed_content
      6 .Nd view RSS/Atom content
      7 .Sh SYNOPSIS
      8 .Nm
      9 .Op Ar
     10 .Sh DESCRIPTION
     11 .Nm
     12 formats feed data (TSV) from
     13 .Xr sfeed 1
     14 from stdin or for each
     15 .Ar file
     16 to stdout as plain-text content.
     17 For HTML content it uses
     18 .Xr lynx 1
     19 to convert it to plain-text.
     20 At the end it uses the pager to view the output.
     21 The
     22 .Nm
     23 script can be used by
     24 .Xr sfeed_curses 1
     25 to view content.
     26 .Sh ENVIRONMENT VARIABLES
     27 .Bl -tag -width Ds
     28 .It Ev PAGER
     29 The pager used to view the content.
     30 If it is not set it will use "less -R" by default.
     31 .It Ev SFEED_HTMLCONV
     32 The program used to convert HTML content to plain-text.
     33 If it is not set it will use lynx by default.
     34 .El
     35 .Sh EXIT STATUS
     36 .Ex -std
     37 .Sh EXAMPLES
     38 .Bd -literal
     39 curl -s 'https://codemadness.org/atom_content.xml' | sfeed | sfeed_content
     40 .Ed
     41 .Pp
     42 The output format looks like this:
     43 .Bd -literal
     44 Title:     The title.
     45 Author:    The line with the author if it is set.
     46 Category:  The line with the categories if it is set.
     47 Link:      The line with the link if it is set.
     48 Enclosure: The line with the enclosure if it is set.
     49 
     50 The content converted to plain-text.
     51 
     52 <form feed character> if there are multiple items.
     53 .Ed
     54 .Sh SEE ALSO
     55 .Xr awk 1 ,
     56 .Xr less 1 ,
     57 .Xr lynx 1 ,
     58 .Xr sfeed_curses 1
     59 .Sh AUTHORS
     60 .An Hiltjo Posthuma Aq Mt hiltjo@codemadness.org