view paste/paste.19593 @ 6429:8af21f46b461

<b_jonas> le/rn xkcq/"xkcq" is worth 8 more points than "xkcd" in Scrabble, or a whopping 30 more if both are played optimally on a triple word score. Nyahhh.
author HackBot
date Sat, 19 Dec 2015 17:38:34 +0000
parents 1794894163e2
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:$(grep "<.*>" $file | shuf -n 1)" | sed "s=<[^>]*> =="
fi