Last active
February 23, 2022 22:16
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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