tags:

views:

124

answers:

1

I have all my Apache access log files as access.log, access.log.1 access.log.1.gz etc... What I want is to zcat all files in and not in gzip format and pipe them into an X program.

I know I can do: zcat /var/log/apache2/access.log.*.gz | someapp... but that will just work for *.gz and not the first two logs.

Any ideas will be appreciate it

+1  A: 

use zcat -f, it will copy uncompressed files as is

ergosys