view bin/pastlog @ 4318:270a65749c2c

<mrhmouse> echo "args=\\$*" > repeat
author HackBot
date Thu, 16 Jan 2014 22:52:50 +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