view bin/log @ 5799:a5ef8d072826

<enor> ` sed -i \'s/\\*s-\\*c/\\*c-\\*s/\' letersort
author HackBot
date Sun, 05 Jul 2015 01:09:56 +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