summaryrefslogtreecommitdiff
path: root/bin/common/y2feed
blob: 0f27d68704e6db368ff176c3766e6fa4f0841e42 (plain)
1
2
3
4
5
6
7
8
#!/usr/bin/env sh

test -z "${url:=$1}" \
	&& url="$(cat /dev/stdin)"

echo "url: ${url}" 1>&2

curl -s "$url" | pup 'link attr{href}' | grep 'feeds'