💾 Archived View for ait.place › dot › bin › .local › bin › rssadd.txt captured on 2021-12-05 at 23:47:19.

View Raw

More Information

⬅️ Previous capture (2021-12-03)

-=-=-=-=-=-=-

#!/bin/sh

RSSFILE="${XDG_CONFIG_HOME:-$HOME/.config}/newsboat/urls"
! echo "$1" | grep "https*://\S\+\.[A-Za-z]\+\S*" >/dev/null && exit

if awk '{print $1}' "$RSSFILE" | grep "^$1$" >/dev/null; then; else echo "$1" >> "$RSSFILE";fi