Mercurial > repo
view bin/anonlog @ 3283:b795c560b4a8
<oerjan> echo \'A partial order is just a small thin skeletal category.\' >wisdom/\'partial order\'
author | HackBot |
---|---|
date | Sat, 06 Jul 2013 03:41:20 +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