{"id":2327,"date":"2019-05-29T00:14:14","date_gmt":"2019-05-28T16:14:14","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=2327"},"modified":"2019-05-30T21:37:20","modified_gmt":"2019-05-30T13:37:20","slug":"rgrep","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/rgrep","title":{"rendered":"rgrep\u547d\u4ee4 – \u67e5\u627e\u6587\u4ef6\u91cc\u7b26\u5408\u6761\u4ef6\u7684\u5b57\u7b26\u4e32"},"content":{"rendered":"\n

rgrep\u547d\u4ee4\u7684\u529f\u80fd\u548cgrep\u547d\u4ee4\u7c7b\u4f3c\uff0c\u53ef\u67e5\u627e\u5185\u5bb9\u5305\u542b\u6307\u5b9a\u7684\u8303\u672c\u6837\u5f0f\u7684\u6587\u4ef6\uff0c\u5982\u679c\u53d1\u73b0\u67d0\u6587\u4ef6\u7684\u5185\u5bb9\u7b26\u5408\u6240\u6307\u5b9a\u7684\u8303\u672c\u6837\u5f0f\uff0c\u9884\u8bbergrep\u547d\u4ee4\u4f1a\u628a\u542b\u6709\u8303\u672c\u6837\u5f0f\u7684\u90a3\u4e00\u5217\u663e\u793a\u51fa\u6765\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>rgrep [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-? <\/td>\u663e\u793a\u8303\u672c\u6837\u5f0f\u4e0e\u8303\u4f8b\u7684\u8bf4\u660e <\/td><\/tr>
-B <\/td>\u5ffd\u7565\u4e8c\u8fdb\u5236\u7684\u6570\u636e <\/td><\/tr>
-c <\/td>\u8ba1\u7b97\u7b26\u5408\u8303\u672c\u6837\u5f0f\u7684\u5217\u6570 <\/td><\/tr>
-D <\/td>\u6392\u9519\u6a21\u5f0f\uff0c\u53ea\u5217\u51fa\u547d\u4ee4\u641c\u5bfb\u7684\u76ee\u5f55\u6e05\u5355\uff0c\u800c\u4e0d\u4f1a\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9 <\/td><\/tr>
-F <\/td>\u53ea\u8bfb\u53d6\u8be5\u8fde\u63a5\u6240\u6307\u5411\u7684\u539f\u59cb\u6587\u4ef6\u7684\u5185\u5bb9 <\/td><\/tr>
-h <\/td>\u7279\u522b\u5c06\u7b26\u5408\u8303\u672c\u6837\u5f0f\u7684\u5b57\u7b26\u4e32\u6807\u793a\u51fa\u6765<\/td><\/tr>
-H <\/td>\u53ea\u5217\u51fa\u7b26\u5408\u8303\u672c\u6837\u5f0f\u7684\u5b57\u7b26\u4e32\uff0c\u800c\u975e\u663e\u793a\u6574\u5217\u7684\u5185\u5bb9 <\/td><\/tr>
-i <\/td>\u5ffd\u7565\u5b57\u7b26\u5927\u5c0f\u5199\u7684\u5dee\u522b <\/td><\/tr>
-l  <\/td>\u5217\u51fa\u6587\u4ef6\u5185\u5bb9\u7b26\u5408\u6307\u5b9a\u7684\u8303\u672c\u6837\u5f0f\u7684\u6587\u4ef6\u540d\u79f0 <\/td><\/tr>
-n <\/td>\u5728\u663e\u793a\u7b26\u5408\u574a\u672c\u6837\u5f0f\u7684\u90a3\u4e00\u5217\u4e4b\u524d\uff0c\u6807\u793a\u51fa\u8be5\u5217\u7684\u5217\u6570\u7f16\u53f7 <\/td><\/tr>
-N  <\/td>\u4e0d\u8981\u9012\u5f52\u5904\u7406 <\/td><\/tr>
-r  <\/td>\u9012\u5f52\u5904\u7406\uff0c\u5c06\u6307\u5b9a\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u53ca\u5b50\u76ee\u5f55\u4e00\u5e76\u5904\u7406 <\/td><\/tr>
-R <\/td>\u6b64\u53c2\u6570\u7684\u6548\u679c\u548c\u6307\u5b9a”-r”\u53c2\u6570\u7c7b\u4f3c\uff0c\u4f46\u53ea\u4e3b\u529b\u7b26\u5408\u8303\u672c\u6837\u5f0f\u6587\u4ef6\u540d\u79f0\u7684\u6587\u4ef6 <\/td><\/tr>
-v <\/td>\u53cd\u8f6c\u67e5\u627e <\/td><\/tr>
-W<\/td>\u9650\u5236\u7b26\u5408\u8303\u672c\u6837\u5f0f\u7684\u5b57\u7b26\u4e32\u6240\u5728\u5217\uff0c\u5fc5\u987b\u62e5\u6709\u7684\u5b57\u7b26\u6570 <\/td><\/tr>
-x<\/td>\u53ea\u5904\u7406\u7b26\u5408\u6307\u5b9a\u6269\u5c55\u540d\u7684\u6587\u4ef6\u540d\u79f0\u7684\u6587\u4ef6 <\/td><\/tr>
--help <\/td>\u663e\u793a\u5e2e\u52a9\u4fe1\u606f <\/td><\/tr>
--version <\/td>\u663e\u793a\u7248\u672c\u4fe1\u606f <\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u67e5\u627e\u53e5\u5b50\u4e2d\u5305\u542b”Hello”\u5b57\u7b26\u4e32\u7684\u6587\u4ef6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# rgrep Hello *  <\/pre>\n\n\n\n

\u663e\u793a\u8303\u672c\u6837\u5f0f\u4e0e\u8303\u4f8b\u7684\u8bf4\u660e\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# rgrep -?  <\/pre>\n","protected":false},"excerpt":{"rendered":"

rgrep\u547d\u4ee4\u7684\u529f\u80fd\u548cgrep\u547d\u4ee4\u7c7b\u4f3c\uff0c\u53ef\u67e5\u627e\u5185\u5bb9\u5305\u542b\u6307\u5b9a\u7684\u8303\u672c\u6837\u5f0f\u7684\u6587\u4ef6\uff0c\u5982\u679c\u53d1\u73b0\u67d0\u6587\u4ef6\u7684\u5185\u5bb9\u7b26\u5408\u6240\u6307\u5b9a\u7684\u8303 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2327"}],"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=2327"}],"version-history":[{"count":10,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2327\/revisions"}],"predecessor-version":[{"id":2968,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2327\/revisions\/2968"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=2327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=2327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=2327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}