Mercurial > repo
view paste/paste.2434 @ 11211:dc839e3d282d
<b_jonas> `` gzip -dc share/mtg/All\\ Sets-2017-09-20.zip > share/mtg/allsets-2017-09-20.zip
author | HackBot |
---|---|
date | Wed, 04 Oct 2017 11:30:07 +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