view bin/pastlog @ 7558:cbd0b9f4e0d4

<fizzie> ` mv script{,add} bin/ # I guess they could be there just as well -- but how did you write those things in the first place?
author HackBot
date Wed, 27 Apr 2016 23:14:39 +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