Does zgrep unzip a file before searching? [closed]
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Improve this question 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,