view bin/pastlog @ 8393:6149466f7bfa

<b_jonas> `` echo -n > canary
author HackBot
date Tue, 07 Jun 2016 22:13:53 +0000
parents e037173e0012
children
line wrap: on
line source

#!/bin/sh
cd /var/irclogs/_esoteric
grep -P -i -- "$1" $(ls ????-??-??.txt | head -n -1) | shuf -n 1