Mercurial > repo
view bin/anonlog @ 12332:4be08e8c2b14 draft
<b_jonas> le/rn_append california//. WARNING: The area of California is made of chemicals known to the State of California to cause cancer and birth defects or other reproductive harm.
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Fri, 29 May 2020 17:06:20 +0000 |
parents | ee2e8950bb3c |
children |
line wrap: on
line source
#!/bin/sh cd /var/irclogs/_esoteric if [ "$1" ]; then grep -P -i -- "$1" ????-??-??.txt | shuf -n 1| sed "s=<[^>]*> ==" else file=$(shuf -en 1 ????-??-??.txt) echo "$file:$(grep "<.*>" $file | shuf -n 1)" | sed "s=<[^>]*> ==" fi