view bin/pastlog @ 6327:f36cc41201e1

<oerjan> rm test2
author HackBot
date Sat, 28 Nov 2015 07:38:36 +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