Does zgrep unzip a file before searching? [closed]

此生再无相见时 提交于 2021-02-19 09:40:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!