Thursday
5
Feb 2004

gzip all of today’s web server logs?

(11:34 pm) Tags: [How do I...]
find /usr/local/apache2/logs -type f | grep `date +%Y%m%d` | grep -v gz | xargs -n 1 gzip

Popularity: 9%

Comments: (0)