Mercurial > repo
view paste/paste.2434 @ 3597:c5533f2fe549
<Jafet> addquote <Bike> a dark day for all of humankind <zzo38> Bike: Wrong. Not all of humankind lives in the same timezone. <shachaf> a dark day for some of humankind <zzo38> OK
author | HackBot |
---|---|
date | Sun, 01 Sep 2013 07:26:17 +0000 |
parents | e037173e0012 |
children |
line wrap: on
line source
#!/bin/sh cd /var/irclogs/_esoteric if [ "$1" ]; then grep -P -i -- "$1" ????-??-??.txt | shuf -n 1 else file=$(shuf -en 1 ????-??-??.txt) echo "$file:$(shuf -n 1 $file)" fi