Best unofficial Apache Server developers community |
|
Does there exist a magical shell piping which would allow easily to grep through bunch of .gz log files without needing to extract them somewhere? .gz files are Apache logs, result of log rotation. I'd like to quickly check how often certain URIs are accessed in the past.
posted via ServerFault
|
|
 
|
The zgrep program is available for Linux (and perhaps some Unix too). This will decompress the files and then grep through them. |
|
 
|
How about zgrep? Seems to be installed on Mac OS and Ubuntu 11.04. |
|
 
|
You can just use If you need to use a specific grep, you can set the GREP environment variable:
|