-
-
Save b0o/2f4cf3ad681f46570715c8f381d7155f to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
n="${1:-1}" | |
output="$(curl -s "https://www.archlinux.org/feeds/news/" | xmlstarlet sel -T -t -m /rss/channel/item -v "concat(pubDate,': ',title)" -n | head -n $n)"; | |
echo -e "\e[1;31mhttps://www.archlinux.org/"; | |
echo "$output"; | |
echo -en "\e[0m" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment