Mercurial > repo
view bin/anonlog @ 1575:4320bd770e84
<oerjan> learn Oregon is the home of Oregano. Gregor used to take care of the color scheme, but then he left.
author | HackBot |
---|---|
date | Sun, 20 Jan 2013 06:55:32 +0000 |
parents | ee2e8950bb3c |
children |
line wrap: on
line source
#!/bin/sh cd /var/irclogs/_esoteric if [ "$1" ]; then grep -P -i -- "$1" ????-??-??.txt | shuf -n 1| sed "s=<[^>]*> ==" else file=$(shuf -en 1 ????-??-??.txt) echo "$file:$(grep "<.*>" $file | shuf -n 1)" | sed "s=<[^>]*> ==" fi