view bin/pastlog @ 216:e9a9e7b80e76

<elliott> delquote 78
author HackBot
date Sun, 15 Apr 2012 16:27:49 +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