Mercurial > repo
view bin/anonlog @ 11761:1e5c15d8a461 draft
<oerjan> le/rn abelian group//An abelian group is a group that spends all its time commuting, and therefore never does any real work.
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Wed, 27 Mar 2019 23:24:14 +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