{"id":5558,"date":"2019-11-25T18:17:34","date_gmt":"2019-11-25T10:17:34","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5558"},"modified":"2019-11-25T18:17:35","modified_gmt":"2019-11-25T10:17:35","slug":"zgrep","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/zgrep","title":{"rendered":"zgrep\u547d\u4ee4 – \u5728\u538b\u7f29\u6587\u4ef6\u4e2d\u6309\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u641c\u7d22"},"content":{"rendered":"\n

\u4f7f\u7528zgrep\u547d\u4ee4\u53ef\u4ee5\u5728\u538b\u7f29\u6587\u4ef6\u4e2d\u8c03\u7528grep\u6309\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u641c\u7d22<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>zgrep [\u53c2\u6570] [\u6a21\u5f0f] [\u6587\u4ef6\u540d]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-x<\/td>\u88ab\u6392\u9664\u5728\u5904\u7406\u5f52\u6863\u6210\u5458\u7684\u53ef\u9009\u5217\u8868\u4e2d<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u5728\u538b\u7f29\u6587\u4ef6\/a.zip\u4e2d\u641c\u7d22\u5b57\u7b26a\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# zgrep a \/root\/a.zip<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u4f7f\u7528zgrep\u547d\u4ee4\u53ef\u4ee5\u5728\u538b\u7f29\u6587\u4ef6\u4e2d\u8c03\u7528grep\u6309\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u641c\u7d22 \u8bed\u6cd5\u683c\u5f0f\uff1azgrep [\u53c2\u6570] [\u6a21\u5f0f] [ […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5558"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=5558"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5558\/revisions"}],"predecessor-version":[{"id":5655,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5558\/revisions\/5655"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}