Combining multiple gzipped files into one

Its been almost a month since I started an investigation that requires me to analyze Apache access log files. We’re given hundred logs files and I wanted to simplify my task so I decided to combine them into one huge log file.

Log files were on .gz files. To combine then, I use this command:

zcat /path/to/gzipped/files/*.gz | gzip > /path/to/combined-log.gz

Leave a reply

Your email address will not be published. Required fields are marked *