view bin/pastlog @ 8098:7a3c984b2539

<oerjan> learn admn is the curse of people with cdop.
author HackBot
date Mon, 23 May 2016 01:07:47 +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