[Gllug] Apache log files

Peter Corlett abuse at cabal.org.uk
Wed Apr 8 13:47:04 UTC 2009


On Wed, Apr 08, 2009 at 09:28:04AM +0100, John Hearns wrote:
[...]
> What we REALLY need is an obfuscated code contest.

I'm not sure we do :)

> I call a gloves-off, no rules obfuscated code contest for the next GLLUG
> meeting. The only rule is that the author must stand up and explain in two
> minutes what the code does, and what elegant tricks are embedded in the
> code.

I've not done any serious golfing on it, but...:

perl -pe 'm(\[(..)/(...)/(....):)||die;$p="$3-$2-$1.access.log";$c&&$c eq$p||open STDOUT,">",$c=$p or die;' access.log

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list