Created
December 22, 2011 13:47
-
-
Save wandernauta/1510352 to your computer and use it in GitHub Desktop.
Read the Arch Linux news feed on the console.
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
# | |
# anews.sh | |
# Read the Arch Linux news feed on the console | |
# | |
# Put (or source) this in your .zsh_profile or whatever. | |
# | |
# Usage: | |
# $ anews | |
# | |
# Bugs: | |
# - Doesn't cache. At all. | |
# | |
anews () { | |
URL="http://www.archlinux.org/feeds/news/" | |
curl -s $URL | xmllint --format - | grep -oE "<title>(.*)<\/title>" | tail -n+2 | sed -r 's/<\/?title>//g' | sed -r 's/^/- /g' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment