Mercurial > repo
comparison paste/paste.19593 @ 343:1794894163e2
<ais523> paste bin/anonlog
author | HackBot |
---|---|
date | Sun, 29 Apr 2012 03:12:06 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
342:92d104be8127 | 343:1794894163e2 |
---|---|
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:$(grep "<.*>" $file | shuf -n 1)" | sed "s=<[^>]*> ==" | |
8 fi | |
9 |