log
graph
tags
bookmarks
branches
changeset
browse
file
latest
diff
comparison
annotate
file log
raw
help
Mercurial
>
repo
annotate bin/log @ 2171:
e00091de101f
Find changesets by keywords (author, files, the commit message), revision number or hash, or
revset expression
.
<nortti> list
author
HackBot
date
Mon, 18 Feb 2013 19:42:46 +0000
parents
e037173e0012
children
Ignore whitespace changes -
Everywhere:
Within whitespace:
At end of lines:
rev
line source
0
e037173e0012
Initial import.
HackBot
parents:
diff
changeset
1
#!/bin/sh
e037173e0012
Initial import.
HackBot
parents:
diff
changeset
2
cd /var/irclogs/_esoteric
e037173e0012
Initial import.
HackBot
parents:
diff
changeset
3
if [ "$1" ]; then
e037173e0012
Initial import.
HackBot
parents:
diff
changeset
4
grep -P -i -- "$1" ????-??-??.txt | shuf -n 1
e037173e0012
Initial import.
HackBot
parents:
diff
changeset
5
else
e037173e0012
Initial import.
HackBot
parents:
diff
changeset
6
file=$(shuf -en 1 ????-??-??.txt)
e037173e0012
Initial import.
HackBot
parents:
diff
changeset
7
echo "$file:$(shuf -n 1 $file)"
e037173e0012
Initial import.
HackBot
parents:
diff
changeset
8
fi
e037173e0012
Initial import.
HackBot
parents:
diff
changeset
9