Mercurial > repo
view bin/log @ 11462:f9485e29a250 draft
<shachaf> slwd hackeso//s/ H/ entirely&/
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Sat, 07 Apr 2018 23:56:24 +0100 |
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