view bin/aseen @ 3401:492dcdc07d89

<Jafet> (head -n 14 bin/gccrun; echo \'#include <math.h>\'; tail -n +14 bin/gccrun) > /tmp/gccrun && mv /tmp/gccrun bin/gccrun
author HackBot
date Fri, 09 Aug 2013 14:28:08 +0000
parents 7914d7e0b500
children
line wrap: on
line source

#!/usr/bin/env bash
n="<${1% }>"; n="${n,,}"
while ((i++ < 30)) && read -r file
do awk -vf="${file##*/}" -vn="$n" 'tolower($2) ~ n{x=$0} END{if(!x) exit 1; print f,x}' "$file" && exit;
done < <(ls -r /var/irclogs/_esoteric/????-??-??.txt)
echo "not lately"