From 7498cb2ddfc105ef9341809556fe2a79afd0547b Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 19 Feb 2023 18:41:05 +0100 Subject: added: (bin) y2chid and y2feed scripts --- bin/common/y2feed | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bin/common/y2feed (limited to 'bin/common/y2feed') diff --git a/bin/common/y2feed b/bin/common/y2feed new file mode 100755 index 0000000..e5e2201 --- /dev/null +++ b/bin/common/y2feed @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +test -z "${url:=$1}" \ + && url="$(cat /dev/stdin)" + +echo "url: ${url}" 1>&2 + +curl -s "$url" | pup 'link attr{href}' | grep 'feeds' -- cgit v1.2.3