view bin/pastlog @ 697:cf97333ab4e5

<oerjan> pastelogs changed the topic
author HackBot
date Fri, 14 Sep 2012 06:53:05 +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