{"id":5875,"date":"2019-12-23T14:44:57","date_gmt":"2019-12-23T06:44:57","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5875"},"modified":"2020-05-05T15:07:58","modified_gmt":"2020-05-05T07:07:58","slug":"bzgrep","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/bzgrep","title":{"rendered":"bzgrep\u547d\u4ee4 – \u641c\u7d22.bz2\u538b\u7f29\u5305\u4e2d\u6587\u4ef6\u5185\u5bb9"},"content":{"rendered":"\n

bzgrep\u547d\u4ee4\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u641c\u7d22\u201c.bz2\u201d\u538b\u7f29\u5305\u4e2d\u6587\u4ef6\uff0c\u5c06\u5339\u914d\u7684\u884c\u663e\u793a\u5230\u6807\u6ce8\u8f93\u51fa\u3002<\/p>\n\n\n\n

bzgrep\u547d\u4ee4\u672c\u8eab\u6ca1\u6709\u4efb\u4f55\u9009\u9879\uff0c\u4f46\u5b83\u652f\u6301grep\u547d\u4ee4\u7684\u6240\u6709\u9009\u9879\u3002\u5728\u547d\u4ee4\u884c\u4e2d\u7684\u9009\u9879\u5c06\u76f4\u63a5\u4f20\u9012\u7ed9grep\u547d\u4ee4\u3002<\/p>\n\n\n\n

bzgrep\u547d\u4ee4\u548cbzegrep\u547d\u4ee4\uff0cbzfgrep\u547d\u4ee4\u7684\u529f\u80fd\u76f8\u540c\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f:<\/strong> bzgrep [\u53c2\u6570] [\u6587\u4ef6]<\/p>\n\n\n\n

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

-i<\/td>\u641c\u7d22\u65f6\uff0c\u5ffd\u7565\u5927\u5c0f\u5199<\/td><\/tr>
-c<\/td>\u53ea\u8f93\u51fa\u5339\u914d\u884c\u7684\u6570\u91cf<\/td><\/tr>
-l<\/td>\u53ea\u5217\u51fa\u7b26\u5408\u5339\u914d\u7684\u6587\u4ef6\u540d\uff0c\u4e0d\u5217\u51fa\u5177\u4f53\u7684\u5339\u914d\u884c<\/td><\/tr>
-n<\/td>\u5217\u51fa\u6240\u6709\u7684\u5339\u914d\u884c\uff0c\u663e\u793a\u884c\u53f7<\/td><\/tr>
-h<\/td>\u67e5\u8be2\u591a\u6587\u4ef6\u65f6\u4e0d\u663e\u793a\u6587\u4ef6\u540d<\/td><\/tr>
-s<\/td>\u4e0d\u663e\u793a\u4e0d\u5b58\u5728\u3001\u6ca1\u6709\u5339\u914d\u6587\u672c\u7684\u9519\u8bef\u4fe1\u606f<\/td><\/tr>
-v<\/td>\u663e\u793a\u4e0d\u5305\u542b\u5339\u914d\u6587\u672c\u7684\u6240\u6709\u884c<\/td><\/tr>
-w<\/td>\u5339\u914d\u6574\u8bcd<\/td><\/tr>
-x<\/td>\u5339\u914d\u6574\u884c<\/td><\/tr>
-r<\/td>\u9012\u5f52\u641c\u7d22<\/td><\/tr>
-q<\/td>\u7981\u6b62\u8f93\u51fa\u4efb\u4f55\u7ed3\u679c\uff0c\u5df2\u9000\u51fa\u72b6\u6001\u8868\u793a\u641c\u7d22\u662f\u5426\u6210\u529f<\/td><\/tr>
-b<\/td>\u6253\u5370\u5339\u914d\u884c\u8ddd\u6587\u4ef6\u5934\u90e8\u7684\u504f\u79fb\u91cf\uff0c\u4ee5\u5b57\u8282\u4e3a\u5355\u4f4d<\/td><\/tr>
-o<\/td>\u4e0e-b\u7ed3\u5408\u4f7f\u7528\uff0c\u6253\u5370\u5339\u914d\u7684\u8bcd\u636e\u6587\u4ef6\u5934\u90e8\u7684\u504f\u79fb\u91cf\uff0c\u4ee5\u5b57\u8282\u4e3a\u5355\u4f4d<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u5ffd\u7565\u5927\u5c0f\u5199\u641c\u7d22\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# bzgrep -i Linuxcool linuxcool.bz2<\/pre>\n\n\n\n

\u53ea\u8f93\u51fa\u542b\u6709\u201clinuxcool\u201d\u7684\u641c\u7d22\u7ed3\u679c\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# bzgrep -c linuxcool linuxcool.bz2<\/pre>\n\n\n\n

\u5339\u914d\u6574\u8bcd\u641c\u7d22\u201clinuxcool\u201d\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# bzgrep -w linuxcool linuxcool.bz2<\/pre>\n","protected":false},"excerpt":{"rendered":"

bzgrep\u547d\u4ee4\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u641c\u7d22\u201c.bz2\u201d\u538b\u7f29\u5305\u4e2d\u6587\u4ef6\uff0c\u5c06\u5339\u914d\u7684\u884c\u663e\u793a\u5230\u6807\u6ce8\u8f93\u51fa\u3002 bzgrep\u547d\u4ee4\u672c\u8eab\u6ca1 […]<\/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\/5875"}],"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=5875"}],"version-history":[{"count":6,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5875\/revisions"}],"predecessor-version":[{"id":7479,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5875\/revisions\/7479"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}