----------------------------------------
This is amazeballs
August 17th, 2017
----------------------------------------
I just wrote a super quick bash script to generate new phlog entries, stub
them out, link up the gophermap... all of it. Here's the contents in case
you, like me, are running this place manually:
#!/usr/bin/env bash
DaySuffix() {
case $(date +%d) in
1|21|31) echo "st";;
2|22) echo "nd";;
3|23) echo "rd";;
*) echo "th";;
esac
}
# Update Last Updated date in index gophermap
sed -i "s/.*Last\ Updated:.*/ ==== Last Updated: $(date +"%B %d$(DaySuffix), %Y") ====/" "$HOME/gopher/gophermap"