summaryrefslogtreecommitdiff
path: root/sfeed_markread.1
blob: 17504c463ad5db9dfec8452e961aaddf04aa579c (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
.Dd July 25, 2021
.Dt SFEED_MARKREAD 1
.Os
.Sh NAME
.Nm sfeed_markread
.Nd mark items as read/unread
.Sh SYNOPSIS
.Nm
.Ar read | Ar unread
.Op Ar urlfile
.Sh DESCRIPTION
.Nm
reads a plain-text list of URLs from stdin.
The file format for the list of URLs is one URL per line.
.Nm
will write to the file specified as
.Ar urlfile
or with the environment variable
.Ev SFEED_URL_FILE .
The
.Nm
script can be used by
.Xr sfeed_curses 1
to mark items as read and unread.
.Sh ENVIRONMENT VARIABLES
.Bl -tag -width Ds
.It Ev SFEED_URL_FILE
This variable can be set to use as the path to the file containing a
plain-text list of read URLs.
.El
.Sh EXIT STATUS
.Ex -std
.Sh EXAMPLES
.Bd -literal
export SFEED_URL_FILE="$HOME/.sfeed/urls"
echo 'https://codemadness.org/sfeed.html' | sfeed_markread read
.Ed
.Pp
or
.Bd -literal
echo 'https://codemadness.org/sfeed.html' | sfeed_markread read ~/.sfeed/urls
.Ed
.Sh SEE ALSO
.Xr awk 1 ,
.Xr sfeed_curses 1
.Sh AUTHORS
.An Hiltjo Posthuma Aq Mt hiltjo@codemadness.org