Mercurial > repo
view paste/paste.19593 @ 1893:2bbb248b7e71
<oerjan> addquote <Sgeo> If that sexy_goats had some sort of namespace, so other things could add their own sexy_goats method to Object or whatever to do something different, I would have no complaint
author | HackBot |
---|---|
date | Wed, 30 Jan 2013 00:22:59 +0000 |
parents | 1794894163e2 |
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:$(grep "<.*>" $file | shuf -n 1)" | sed "s=<[^>]*> ==" fi