Current Music: Silence
Dear Lazyweb,
The way Apache names its access logs is causing me grief and, because my bashfu is weak, I'm calling on you for assistance.
(
Cut to prevent non-technical types encountering the Lovecraftian madness of shell scripting )
Comments 4
If it needs to all be part of the same pipe or something, than you might need to make a tiny script.
Reply
That didn't seem to work when I tried it before.
If it needs to all be part of the same pipe or something, than you might need to make a tiny script.
I was hoping to avoid that, but thanks for the suggestion.
Reply
gunzip -dc `ls -tr DOMAIN-access*.gz` | cat - DOMAIN-access.log.1 DOMAIN-access.log
might work. "-" is often used to indicate stdin.
Reply
Reply
Leave a comment