comparison paste/paste.18999 @ 337:ab2c49f31e97

<ais523> paste bin/log
author HackBot
date Sun, 29 Apr 2012 02:32:15 +0000
parents
children
comparison
equal deleted inserted replaced
336:db6b785d3855 337:ab2c49f31e97
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