Mercurial > repo
view paste/paste.19593 @ 8652:72e671ff73b6
<izabera> ` echo \'f=$(find wisdom -ipath "wisdom/*$1*" -type f -print0 | shuf -z -n1); echo -n "${f#wisdom/}//" | rnooodl; rnoooodl < "$f"\' > bin/wisdom
author | HackBot |
---|---|
date | Wed, 29 Jun 2016 00:26:58 +0000 |
parents | 1794894163e2 |
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:$(grep "<.*>" $file | shuf -n 1)" | sed "s=<[^>]*> ==" fi