Mercurial > repo
view test/log @ 121:8a04b0258775
<elliott> run mv bin test; touch bin
author | HackBot |
---|---|
date | Thu, 22 Mar 2012 19:17:38 +0000 |
parents | |
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