citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

rssurl (223B)


      1 #!/usr/bin/env bash
      2 
      3 set -eou pipefail
      4 
      5 if [ -z "$1" ]; then
      6 	printf "usage: rssurl <some.link/rss.xml>\n"
      7 	exit 1
      8 fi
      9 
     10 curl -sL "$1" | xq -rc '.rss.channel.item[] | [.title,.link] | @tsv' | fzf | cutt -f2 | xargs plainweb