[Gllug] Apache log files

John Hearns hearnsj at googlemail.com
Wed Apr 8 13:49:15 UTC 2009


2009/4/8 Peter Corlett <abuse at cabal.org.uk>:
> On Wed, Apr 08, 2009 at 09:28:04AM +0100, John Hearns wrote:
> [...]
>> What we REALLY need is an obfuscated code contest.
>>
> 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

That's more like it. But I can still make out access.log - so I can
figure out it does something with access logs.
More compression! More confusion!
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list