perl script or the like

Glyn Grinstead glyn at
Tue Feb 18 16:36:37 GMT 2003

At 16:09 18/02/2003 -0000, Mark Stewart wrote:
>hi - has anyone got a script to join 2 (or more) apache logs together in
date sequence order so that my stats package won't die ?

When I had to do this I concatenated all the files together and then pumped
it through:

sort -t ' ' -k 4.9,4.12n -k 4.5,4.7M -k 4.2,4.3n -k 4.14,4.15n -k
4.17,4.18n -k 4.20,4.21n

I can't honestly believe I created that myself so it probably came from the
webalizer website or, if not, then from the divine and all encompassing
wisdom of Google. It seemed to serve the purpose at the time....

More information about the Ukfreebsd mailing list