view bin/pastlog @ 12193:aa22c38426e9 draft

<oerjan> mkx ../bin/u//cd ${HACKENV-/hackenv}; nur "$1"
author HackEso <hackeso@esolangs.org>
date Wed, 27 Nov 2019 02:11:28 +0000
parents e037173e0012
children
line wrap: on
line source

#!/bin/sh
cd /var/irclogs/_esoteric
grep -P -i -- "$1" $(ls ????-??-??.txt | head -n -1) | shuf -n 1