Mercurial > repo
view bin/log @ 9367:1d9cae768f53
<shachaf> learn A is a village in Norway. The BBC invented it by not understanding things on top of letters.
author | HackBot |
---|---|
date | Thu, 20 Oct 2016 01:18:49 +0000 |
parents | e037173e0012 |
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:$(shuf -n 1 $file)" fi