Mercurial > repo
view bin/seen @ 1638:e491c5d15cbd
<fizzie> mv bin/seen2 bin/seen
author | HackBot |
---|---|
date | Tue, 22 Jan 2013 13:56:02 +0000 |
parents | 295ac4f70bdd |
children | 24ae44f3a955 |
line wrap: on
line source
#! /usr/bin/env perl ($n,$e)=split /\s+/, join(" ",@ARGV); $n=~s/ *$//; $c="ls -r /var/irclogs/_esoteric/????-??-??.txt"; $c.=" | head -n 30" unless $e eq "ever"; @f=split /\s+/, `$c`; for $f (@f) { open F,"<$f"; @l=grep(/^..:..:..: <$n>/i,<F>); close F; if (@l) { $b=$f; $b=~s#.*/(.*?).txt#$1#; print "$b $l[-1]"; exit 1; } } print "not lately";