comparison paste/paste.24233 @ 342:92d104be8127

<ais523> paste bin/log
author HackBot
date Sun, 29 Apr 2012 02:51:15 +0000
parents
children 6ace234a6432
comparison
equal deleted inserted replaced
341:d18ed389b1c3 342:92d104be8127
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