Mercurial > repo
view bin/anonlog @ 10638:2f9aecbe683d
<rdococ> le//rn ice//I.C.E. stands for Imaginary Christian Era. It covers the forgotten period of time that is not on the real axis.
author | HackBot |
---|---|
date | Wed, 12 Apr 2017 21:44:58 +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