view bin/bseen @ 3981:866c7045ad18

<shachaf> addquote <zzo38> I do sometimes work on Linux computer. I think it is set to en.UTF-8 by default although on my account I have changed it to the C locale, disabled Unicode translation, and loaded a CP437 font. <zzo38> This improves the operation of the system.
author HackBot
date Mon, 04 Nov 2013 05:13:31 +0000
parents 7914d7e0b500
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'