view bin/log @ 12271:6389adbc4a0d draft

<kspalaiologos> fetch /hackenv/asmbf-1.2.6.zip https://github.com/KrzysztofSzewczyk/asmbf/archive/master.zip
author HackEso <hackeso@esolangs.org>
date Tue, 31 Dec 2019 15:59:04 +0000
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