Mercurial > repo
view bin/log @ 3992:815f4ed87390
<oerjan> addquote <Taneb> kmc, I was trying to go to a sci-fi and fantasy society social, and I went to the wrong bar <Taneb> Wound up at my university\'s fetish society <Taneb> Didn\'t realise for an hour and a half
author | HackBot |
---|---|
date | Thu, 07 Nov 2013 23:57:04 +0000 |
parents | e037173e0012 |
children |
line wrap: on
line source
#!/bin/sh cd /var/irclogs/_esoteric if [ "$1" ]; then grep -P -i -- "$1" ????-??-??.txt | shuf -n 1 else file=$(shuf -en 1 ????-??-??.txt) echo "$file:$(shuf -n 1 $file)" fi