Pipe : gunzip files and concatenate

I feel like this should be simple. I have a directory with >1000 gzip-ed files. I’d like to gunzip them all and concatenate.

Running gzip -dk *.gz | cat > output.file produces the following error: Too many levels of symbolic links

Ideas?

Asked By: ThePresident

||

zcat -- *.gz > output.file

Apart from that gzip -dk *.gz does not what you expect. It will create a decompressed copy of each file and not print them. You rather want gzip -dc or gunzip -c.

Answered By: Paul Pazderski
Categories: Answers Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.