Mercurial > repo
view paste/paste.2434 @ 441:c3cbc7c20beb
<elliott> addquote <monqy> you've constructed a situation in which i have no choice but to die in 10 days <monqy> well done <monqy> that's murder
author | HackBot |
---|---|
date | Mon, 28 May 2012 22:32:42 +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