6 lines
140 B
Bash
Executable file
6 lines
140 B
Bash
Executable file
#!/bin/sh
|
|
lastfile=/tmp/lastnewscount.$USER
|
|
last=$(cat $lastfile)
|
|
(newsboat -x print-unread || echo $last) | cut -d' ' -f1 | tee $lastfile
|
|
|