comparison paste/paste.2434 @ 0:e037173e0012

Initial import.
author HackBot
date Thu, 16 Feb 2012 19:42:32 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e037173e0012
1 #!/bin/sh
2 cd /var/irclogs/_esoteric
3 if [ "$1" ]; then
4 grep -P -i -- "$1" ????-??-??.txt | shuf -n 1
5 else
6 file=$(shuf -en 1 ????-??-??.txt)
7 echo "$file:$(shuf -n 1 $file)"
8 fi
9