view bin/bseen @ 1869:aa27b70f1bee

<coppro> addquote <Sgeo> You miss out on a lot of speculation, which is pretty essential to understanding what\'s going on
author HackBot
date Sun, 27 Jan 2013 04:27:45 +0000
parents d32a6933bc5d
children
line wrap: on
line source

#!/usr/bin/env bash
s="<${1% }>"
while ((i++ < 30)) && read -r file; do
	line=
	while read -r t n m; do [[ $n =~ $s ]] && line="$t $n $m"; done <"$file"
	[[ -n "$line" ]] && { printf '%s:%s\n' "${file##*/}" "$line"; exit; }
done < <(ls -r /var/irclogs/_esoteric/????-??-??.txt)
echo 'well, not lately'