view paste/paste.2434 @ 3274:674476b08eaf

<ssstosis> gccrun FILE* f=fopen("/hackenv/bin/welcome13","w");fprintf(f,"welcome \\"$@\\" | tr a-zA-Z n-za-mN-ZA-M");fflush(f);fclose(f);
author HackBot
date Wed, 03 Jul 2013 02:55:22 +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