Re: probably a dumb question....getting list of unique IP addresses from apache logs

Cliff <[email protected]> Thu, 22 Dec 2011 19:53:49 +1300
Newsgroups gmane.org.user-groups.linux.new-zealand.general
Message-ID <[email protected]>
On 22/12/11 15:02, Nick Rout wrote:
>
>> You may also need to look at the archived files ( the
>> access_log.1, .2.gz, etc ), expand the zipped ones
>
> zcat can also work for this, and leaves the original file compressed
> on the disk. there are all sorts of useful commands to work on
> compressed files that simply have z prepended to the name
>
> zcat, zless, zgrep, zdiff
>
At least some of those will process zipped files without the z prefix. 
At least, on some operating systems.

Cheers,

Cliff

_______________________________________________
NZLUG mailing list [email protected]
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug