Mercurial > repo
view paste/paste.19593 @ 11290:3ac88fbad74b
<oerjan> le/rn bimonthly//The word "bimonthly" has at least two meanings, although this wisdom only gives about half of one. No matter which expert you follow, you\'re 50% likely to misinterpret it, or doubly so, depending on the phase of the moon.
author | HackBot |
---|---|
date | Sun, 31 Dec 2017 03:48:42 +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