Mercurial > repo
view paste/paste.2434 @ 9995:6dafe99af36a
<shachaf> addquote <int-e> fungot is here <fungot> int-e: may cause extreme loss of appetite! may cause severe diarrhea and vomiting!
author | HackBot |
---|---|
date | Sun, 18 Dec 2016 19:05:14 +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