# HG changeset patch # User HackBot # Date 1358850213 0 # Node ID 04703504abeea401f8274bf8c190eaa13a991563 # Parent 2247f569f099692cd9fa904c269716df687033cc echo \'$n=shift @ARGV; $n=~s/ *$//; @f=split /\\s+/, `ls -r /var/irclogs/_esoteric/????-??-??.txt | head -n 5`; for $f (@f) { open F,"<$f"; @l=grep(/^..:..:..: <$n>/i,); close F; if (@l) { $b=$f; $b=~s#.*/(.*?).txt#$1#; print "$b $l[-1]"; exit 1; } } print "not lately";\' >> bin/seen2 diff -r 2247f569f099 -r 04703504abee bin/seen2 --- a/bin/seen2 Tue Jan 22 10:23:29 2013 +0000 +++ b/bin/seen2 Tue Jan 22 10:23:33 2013 +0000 @@ -1,1 +1,2 @@ #! /usr/bin/env perl +$n=shift @ARGV; $n=~s/ *$//; @f=split /\s+/, `ls -r /var/irclogs/_esoteric/????-??-??.txt | head -n 5`; for $f (@f) { open F,"<$f"; @l=grep(/^..:..:..: <$n>/i,); close F; if (@l) { $b=$f; $b=~s#.*/(.*?).txt#$1#; print "$b $l[-1]"; exit 1; } } print "not lately";