view paste/paste.2434 @ 11137:e5f20b9a7f52

<oerjan> learn The degeneration is the generation that watches the Ellen DeGeneres show. See also degenerate.
author HackBot
date Fri, 28 Jul 2017 01:39:23 +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