Skip to content

Instantly share code, notes, and snippets.

@mariocesar
Last active February 23, 2022 22:16
Show Gist options
  • Save mariocesar/7a5fd69d13ffe9e1c2f73a0f3e834da7 to your computer and use it in GitHub Desktop.
Save mariocesar/7a5fd69d13ffe9e1c2f73a0f3e834da7 to your computer and use it in GitHub Desktop.
What day is it? Get the rss of checkiday.com and output what is celebrated today.
curl -s https://www.checkiday.com/rss.php \
| grep -o -E "<title><\!\[CDATA\[[^<]+</title>" \
| sed -E "s/.+CDATA\[(.+)\]\].+/\\1/" \
| head -n1
# Curling is Cool Day
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment