Mercurial > repo
view paste/paste.2434 @ 10694:45bc9fc3b680
<rdococ> le//rn nvert//To nvert something is to revert it back to its previous form, while recording the reversion as a conversion in itself.
author | HackBot |
---|---|
date | Sun, 16 Apr 2017 02:13:23 +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