view bin/log @ 11210:711917f23f4b

<b_jonas> `` mv -vi share/mtg/All{_,\\ }Sets-2017-09-20.zip
author HackBot
date Wed, 04 Oct 2017 11:28:39 +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