diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-02-19 18:41:05 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-02-19 18:41:05 +0100 |
commit | 7498cb2ddfc105ef9341809556fe2a79afd0547b (patch) | |
tree | 790a51820ea72d9d2b5b3e81a0269ed273c04f76 /bin/common/y2feed | |
parent | bd753881db046fcf4f1280c313a746e887cd1740 (diff) |
added: (bin) y2chid and y2feed scripts
Diffstat (limited to 'bin/common/y2feed')
-rwxr-xr-x | bin/common/y2feed | 8 |
1 files changed, 8 insertions, 0 deletions
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' |