Mercurial > repo
view bin/seen @ 1630:1dbbfd962f22
<fizzie> sed -i -e \'s/......txt#$1/#/\' bin/seen
author | HackBot |
---|---|
date | Tue, 22 Jan 2013 13:48:30 +0000 |
parents | 69c3cce98e53 |
children | 295ac4f70bdd |
line wrap: on
line source
#! /usr/bin/env perl $n=shift @ARGV; $n=~s/ *$//; @f=split /\s+/, `ls -r /var/irclogs/_esoteric/????-??-??.txt | head -n 30`; for $f (@f) { open F,"<$f"; @l=grep(/^..:..:..: <$n>/i,<F>); close F; if (@l) { $b=$f; $b=~s#.*/##; print "$b $l[-1]"; exit 1; } } print "not lately";