Mercurial > repo
view bin/log @ 11112:6412d84cf279
<oerjan> sled bin/rot13//1c#!/hackenv/bin/shebang_args_or_input python
author | HackBot |
---|---|
date | Sat, 22 Jul 2017 00:41:18 +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