Last active
June 23, 2018 19:55
-
-
Save reinvented/23af9f7503d293a79f078f61da8d914e to your computer and use it in GitHub Desktop.
Count the number of blog posts per week in Ton's blog
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
export LC_ALL=C | |
curl -s https://www.zylstra.org/blog/feed/ | \ | |
grep pubDate | \ | |
sed -e 's/<pubDate>//g' | \ | |
sed -e 's/<\/pubDate>//g' | \ | |
while read -r line ; do | |
date -j -f "%a, %d %b %Y %T %z" "$line" "+%V" | |
done | \ | |
sort -n | \ | |
uniq -c | |
export LC_ALL="nl_NL.UTF-8" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See the original issue the script tries to address here.