Mercurial > repo
view bin/log @ 5355:98b177574362
<mroman> learn APL is the programming language everyone secretely wants to use but can\'t admit it in public IRC channels.
author | HackBot |
---|---|
date | Tue, 05 May 2015 14:41:50 +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