问题
Does zgrep unzip a gzip file and make a temporary copy before searching or does it search directly on the compressed file?
回答1:
This source of zgrep
uncompresses the file with zcat
and pipes the result to grep
.
So, no, it does not use a temporary file, but yes, it decompresses (but not fully) before searching.
来源:https://stackoverflow.com/questions/45175030/does-zgrep-unzip-a-file-before-searching