Question: mac os zcat: can’t stat:
$ zcat test.gz
zcat: can’t stat: test.gz (test.gz.Z): No such file or directory
Anwser
case 1:
zcat < test.gz | head -n 10
case 2:
gunzip -c test.gz | head -n 10
$ zcat test.gz
zcat: can’t stat: test.gz (test.gz.Z): No such file or directory
zcat < test.gz | head -n 10
gunzip -c test.gz | head -n 10