Mercurial > repo
view paste/paste.18999 @ 2967:b5f514d70f67
<oerjan> learn cpressey has invented more esolangs than you can shake a stick at. Also he\'s older than the universe hth.
author | HackBot |
---|---|
date | Tue, 28 May 2013 21:31:54 +0000 |
parents | ab2c49f31e97 |
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