Mercurial > repo
view paste/paste.2434 @ 11213:ec128aee030a
<b_jonas> `` ln -svf allsets-2017-09-20.txt share/mtg/allsets.txt
author | HackBot |
---|---|
date | Wed, 04 Oct 2017 11:36:52 +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