view bin/seen @ 2089:0fcfd76d5f00

<oerjan> addquote <ais523> did you know that likes follow you around the internet and steal your browser? <Taneb> I thought that was Phantom_Hoover
author HackBot
date Tue, 12 Feb 2013 20:33:05 +0000
parents e424cb328f92
children
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 $e eq "ever" ? "not that I remember" : "not lately; try `seen $n ever";