sfeed_content.1 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. The content converted to plain-text.
  50. <form feed character> if there are multiple items.
  51. .Ed
  52. .Sh SEE ALSO
  53. .Xr awk 1 ,
  54. .Xr less 1 ,
  55. .Xr lynx 1 ,
  56. .Xr sfeed_curses 1
  57. .Sh AUTHORS
  58. .An Hiltjo Posthuma Aq Mt hiltjo@codemadness.org