add my recently-updated-pages shell scripts (both HTML and JSON versions)

This commit is contained in:
Jason Levine
2014-10-03 21:12:34 -04:00
parent 6e27ed1290
commit 85f97456eb
4 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
#!/bin/bash
cat /home/delfuego/bin/header.tpl
find /home/*/public_html -regex "/home/\_?[0-9a-zA-Z]*/public_html/index.html" -type f -name "index.html" -mtime 0 -printf '%T@ %p %TD %Tr %TY-%Tm-%TdT%TTZ\n' 2> /dev/null | sort -r | perl -CSD -pe 's|([0-9\.]+) /home/([\p{L}\p{N}_]*?)/public_html/index.html (.*) (.*)|<li><a class="homepage-link" href="http://tilde.club/~$2">$2</a> <time datetime="$4">$3</time></li>|'
cat /home/delfuego/bin/footer.tpl