{"id":57,"date":"2025-01-01T06:15:12","date_gmt":"2025-01-01T06:15:12","guid":{"rendered":"http:\/\/47.122.24.175\/?p=57"},"modified":"2025-03-24T03:54:29","modified_gmt":"2025-03-24T03:54:29","slug":"2025%e6%af%8f%e6%97%a5%e5%ad%a6%e4%b9%a0","status":"publish","type":"post","link":"https:\/\/linuxjk.cn\/?p=57","title":{"rendered":"grep\/find\u5e38\u7528\u53c2\u6570+\u57fa\u7840\/\u62d3\u5c55\u6b63\u5219\u7b26\u53f7\uff08day 22)"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"57\" class=\"elementor elementor-57\">\n\t\t\t\t<div class=\"elementor-element elementor-element-37c2327 e-flex e-con-boxed e-con e-parent\" data-id=\"37c2327\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5e53c2a elementor-widget elementor-widget-text-editor\" data-id=\"5e53c2a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/linuxjk.cn\/?p=57\/#grepfind_%E5%B8%B8%E7%94%A8%E5%8F%82%E6%95%B0\" >grep\/find \u5e38\u7528\u53c2\u6570<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/linuxjk.cn\/?p=57\/#%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F%E5%8F%8A%E5%B8%B8%E7%94%A8%E7%AC%A6%E5%8F%B7\" >\u6b63\u5219\u8868\u8fbe\u5f0f\u53ca\u5e38\u7528\u7b26\u53f7<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/linuxjk.cn\/?p=57\/#%E5%9F%BA%E7%A1%80%E6%AD%A3%E5%88%99BRE%EF%BC%88Basic%EF%BC%89_%E7%AC%A6%E5%8F%B7%EF%BC%9A\" >\u57fa\u7840\u6b63\u5219BRE\uff08Basic\uff09\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u7b26\u53f7\uff1a ^ $ . * .* [] [^ ]<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/linuxjk.cn\/?p=57\/#%E6%89%A9%E5%B1%95%E6%AD%A3%E5%88%99ERE_%EF%BC%88121%EF%BC%89_%E7%AC%A6%E5%8F%B7%EF%BC%9A\" >\u6269\u5c55\u6b63\u5219ERE \uff08121\uff09 \u7b26\u53f7\uff1a | + ( ) { } ?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"grepfind_%E5%B8%B8%E7%94%A8%E5%8F%82%E6%95%B0\"><\/span>grep\/find \u5e38\u7528\u53c2\u6570<span class=\"ez-toc-section-end\"><\/span><\/h2>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-696d2f5 elementor-widget elementor-widget-text-editor\" data-id=\"696d2f5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>grep<\/strong><br \/><strong>-n \u663e\u793a\u884c\u53f7<\/strong><br \/><strong>-v \u6392\u9664\uff0c\u53d6\u53cd<\/strong><br \/><strong>-i \u8fc7\u6ee4\u7684\u65f6\u5019\u5ffd\u7565\u5927\u5c0f\u5199<\/strong><br \/><strong>-E \u6548\u679c\u7b49\u540c\u4e8eegrep\uff0c\u652f\u6301\u6269\u5c55\u6b63\u5219\u7b26\u53f7<\/strong><br \/><strong>-o \u53ef\u4ee5\u770b\u5339\u914d\u8fc7\u7a0b<\/strong><\/p><p>grep -A -B -C \u5c5e\u4e8e\u4e0a\u4e0b\u6587\u63a7\u5236<\/p><p>-A \u663e\u793a\u5339\u914d\u6307\u5b9a\u5185\u5bb9\u53ca\u4e4b\u540e\u7684n\u884c<\/p><p>-B \u00a0\u663e\u793a\u5339\u914d\u6307\u5b9a\u5185\u5bb9\u53ca\u4e4b\u524d\u7684n\u884c<\/p><p>-C \u00a0\u663e\u793a\u5339\u914d\u6307\u5b9a\u5185\u5bb9\u53ca\u5176\u524d\u540e\u5404n\u884c<\/p><p><strong>find<\/strong><br \/><strong>-type \u4ec0\u4e48\u7c7b\u578b\u7684\u6587\u4ef6 f\u8868\u793a\u6587\u4ef6 d\u8868\u793a\u76ee\u5f55<\/strong><br \/><strong>-name \u6587\u4ef6\u540d<\/strong><br \/><strong>-size \u6839\u636e\u5927\u5c0f\u67e5\u627e\u6587\u4ef6 +\u8868\u793a\u5927\u4e8e -\u8868\u793a\u5c0f\u4e8e +10k +10M +10G<\/strong><\/p><p><strong> -maxdepth \u6307\u5b9a\u6700\u5927\u6df1\u5ea6\uff0c\u4e0d\u52a0\u5c31\u662f\u6240\u6709\u5c42\uff08\u9700\u8981\u653e\u5728-type\u4e4b\u524d\uff09<\/strong><br \/><strong>-mtime \u6839\u636e\u4fee\u6539\u65f6\u95f4\u67e5\u627e\u6587\u4ef6 +7 7\u5929\u524d\u6587\u4ef6 \uff08\u4e3b\u8981\u7528\u4e8e\u67e5\u627e\u7cfb\u7edf\u65e5\u5fd7\uff0c\u65e7\u7684\u65e5\u5fd7\u6587\u4ef6\uff09<\/strong><\/p><p><strong>find \/etc -type f -name &#8216;passwd&#8217; \/etc\/passwd<\/strong><br \/><strong>find \/ -name &#8216;passwd&#8217;<\/strong><br \/><strong>find \/etc -type f -name &#8216;*.conf&#8217;<\/strong><br \/><strong>find \/ -type f | grep &#8216;oldboy&#8217;<\/strong><\/p><p><strong>find \/ -maxdepth 2 -type f -name &#8216;*.conf&#8217;<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-54e9cdb elementor-widget elementor-widget-text-editor\" data-id=\"54e9cdb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>find\u547d\u4ee4\u4e0e\u5176\u4ed6\u547d\u4ee4\u914d\u5408<\/strong><br \/><strong>find + \u7b80\u5355\u547d\u4ee4\uff1afind\u627e\u51fa\u60f3\u8981\u7684\u6587\u4ef6\uff0c\u5220\u9664\uff0c\u770b\u8be6\u7ec6\u4fe1\u606f\uff0c\u663e\u793a\u6587\u4ef6\u5185\u5bb9\uff0c\u8fc7\u6ee4<\/strong><br \/><strong>#find \u4e0d\u8981\u4e0e\u4ea4\u4e92\u547d\u4ee4\u914d\u5408\u3002 \u4e0d\u53ef\u4ee5find+vim<\/strong><br \/><strong>1.\u53ef\u4ee5\u7528\u53cd\u5f15\u53f7 ls -l `find \u2026\u2026\u2026\u2026\u2026\u2026\u00b7<\/strong><br \/><strong>2.\u53ef\u4ee5find \/ -type f -name &#8216;*.txt&#8217; -exec ls -l {} \\;<\/strong><br \/><strong>#{}\u4e3a\u627e\u5230\u7684\u6587\u4ef6\u7684\u5360\u4f4d\u7b26<\/strong><br \/><strong>3.\u9ed8\u8ba4\u7ba1\u9053\u65e0\u6cd5\u628a\u6570\u636e\uff08\u5b57\u7b26\u4e32\uff09\u53d8\u5316\u4e3a\u547d\u4ee4\u7684\u53c2\u6570\u5bfc\u81f4\u4f20\u9012\u5931\u8d25\uff0c\u53ef\u4ee5\u7528 |xargs<\/strong><br \/><strong>find \/oldboy -type f -name &#8216;*.txt&#8217; | xargs ls -l<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-701ef17 elementor-widget elementor-widget-text-editor\" data-id=\"701ef17\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2><span class=\"ez-toc-section\" id=\"%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F%E5%8F%8A%E5%B8%B8%E7%94%A8%E7%AC%A6%E5%8F%B7\"><\/span><strong>\u6b63\u5219\u8868\u8fbe\u5f0f\u53ca\u5e38\u7528\u7b26\u53f7<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2><p>\u6b63\u5219\uff1aregular expression RE<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b04d150 elementor-widget elementor-widget-text-editor\" data-id=\"b04d150\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3><span class=\"ez-toc-section\" id=\"%E5%9F%BA%E7%A1%80%E6%AD%A3%E5%88%99BRE%EF%BC%88Basic%EF%BC%89_%E7%AC%A6%E5%8F%B7%EF%BC%9A\"><\/span><strong>\u57fa\u7840\u6b63\u5219BRE\uff08Basic\uff09\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/strong><strong>\u7b26\u53f7\uff1a ^ $ . * .* [] [^ ]<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cea76db elementor-widget elementor-widget-text-editor\" data-id=\"cea76db\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>1.^ \uff1a\u4ee5&#8230;\u4e3a\u5f00\u5934\u7684\u884c &#8216;^\u5b57\u7b26&#8217; cat -A .txt \u663e\u793a\u9690\u85cf\u7b26\u53f7\uff08\u884c\u5c3e\u7a7a\u683c \u6362\u884c\u7b26\uff09<\/strong><br \/><strong>2.$ \uff1a\u4ee5&#8230;\u4e3a\u7ed3\u5c3e\u7684\u884c &#8216;\u5b57\u7b26$&#8217; #&#8217;^m$&#8217;\u5339\u914d\u4e00\u884c\u53ea\u6709\u4e00\u4e2a\u5b57\u6bcdm\u7684\u884c<\/strong><br \/><strong>3.^$ \uff1a\u7a7a\u884c\uff0c\u8fd9\u884c\u6ca1\u6709\u4efb\u4f55\u5b57\u7b26<\/strong><br \/><strong>4. . \u4efb\u610f\u4e00\u4e2a\u5b57\u7b26<\/strong><br \/><strong>5.\\ \u8f6c\u4e49\u5b57\u7b26\uff1a\u53bb\u6389\u7279\u6b8a\u7b26\u53f7\u7684\u542b\u4e49 grep &#8216;\\.$&#8217; re.txt #\u663e\u793a\u4ee5.\u7ed3\u5c3e\u7684\u884c<\/strong><br \/><strong>6.* \uff1b\u524d\u4e00\u4e2a\u5b57\u7b26\u8fde\u7eed\u51fa\u73b00\u6b21\u62160\u6b21\u4ee5\u4e0a grep &#8216;0*&#8217; re.txt #\u663e\u793a0\u6216\u5f88\u591a0000<\/strong><br \/><strong>7. .*\uff1a\u6240\u6709 \u662f\u6b63\u5219\u4e2d\u4f7f\u7528\u9891\u7387\u975e\u5e38\u9ad8\u7684\u7b26\u53f7\uff0c\u662f\u4e00\u4e2a\u7ec4\u5408<\/strong><br \/><strong># grep &#8216;^I.*Linux&#8217; re.txt \u5339\u914d\u6240\u6709\u4ee5I\u5f00\u5934\uff0c\u540e\u9762\u662fLinux\u7684\u884c<\/strong><\/p><ul><li><strong>\u8d2a\u5a6a\u6027\uff1a<\/strong><\/li><li><strong>\u6b63\u5219\u8868\u793a\u8fde\u7eed\u51fa\u73b0\u7684\u65f6\u5019\u6216\u8005\u8868\u793a\u6240\u6709\u7684\u65f6\u5019\uff0c\u6b63\u5219\u4f53\u73b0\u51fa\u8d2a\u5a6a\u6027\u5c3d\u53ef\u80fd\u591a\u7684\u5339\u914d<\/strong><\/li><\/ul><p><strong>\u672a\u6765\u6839\u636e\u5b9e\u9645\u9700\u6c42\u4f7f\u7528\u8d2a\u5a6a\u6027<\/strong><br \/><strong>8. [] [abc]\u8868\u793a\u5339\u914d\u5176\u4e2d\u7684\u4efb\u610f\u4e00\u4e2a\u5b57\u7b26\uff0c\u5373\u627e\u51fa\u5e26\u6709a\u6216b\u6216c\u7684\u884c\u5e76\u6807\u8bb0abc\uff0c\u8bd5\u7528\u9891\u7387\u8f83\u9ad8\uff0c[ ]\u4ee3\u8868\u4e00\u4e2a\u5b57\u7b26<\/strong><br \/><strong>#[a-z]\u5339\u914da-z\u4e4b\u95f4\u4efb\u610f\u4e00\u4e2a\u5b57\u7b26\uff0c\u67e5\u627e\u6240\u6709\u5c0f\u5199\u5b57\u6bcd<\/strong><br \/><strong>#'[a-zA-Z]&#8217;\u6240\u6709\u5b57\u6bcd grep\u4e2d\u53ef\u4ee5\u7528\u7b80\u5199[a-Z] [a-zA-Z0-9]\u7b80\u5199\u4e3a[0-Z]<\/strong><br \/><strong>#\u5728[]\u4e2d\u7279\u6b8a\u542b\u4e49\u4f1a\u88ab\u53bb\u6389\uff0c[]\u4e0e\u62d3\u5c55\u6b63\u5219+ -\u4e00\u8d77\u4f7f\u7528\u8f83\u591a<\/strong><br \/><strong>9.[^\u5b57\u7b26]\u8868\u793a\u53d6\u53cd<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-53c85fe elementor-widget elementor-widget-text-editor\" data-id=\"53c85fe\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3><span class=\"ez-toc-section\" id=\"%E6%89%A9%E5%B1%95%E6%AD%A3%E5%88%99ERE_%EF%BC%88121%EF%BC%89_%E7%AC%A6%E5%8F%B7%EF%BC%9A\"><\/span><strong>\u6269\u5c55\u6b63\u5219ERE \uff08121\uff09 \u7b26\u53f7\uff1a | + ( ) { } ?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3><p><strong>1.egrep\u652f\u6301\u6269\u5c55\u6b63\u5219\uff08\u6216grep -E\uff09<\/strong><\/p><p><strong>2.sed\u4f7f\u7528sed -r\u652f\u6301\u6269\u5c55\u6b63\u5219<\/strong><\/p><p><strong>3.awk\u9ed8\u8ba4\u652f\u6301\u6269\u5c55\u6b63\u5219<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9e9f280 elementor-widget elementor-widget-text-editor\" data-id=\"9e9f280\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>1.+ \uff1a\u524d\u4e00\u4e2a\u5b57\u7b26\u8fde\u7eed\u51fa\u73b01\u6b21\u62161\u6b21\u4ee5\u4e0a\uff0c+\u5927\u90e8\u5206\u914d\u5408[]\u4e00\u8d77\u4f7f\u7528<\/strong><br \/><strong>egrep -o &#8216;[a-z]+&#8217; re.txt | sort | uniq -c | sort -rn<\/strong><br \/><strong>#sort\u6392\u5e8f\uff0cuniq -c\u7edf\u8ba1\u51fa\u73b0\u6b21\u6570 sort -rn \u9006\u5e8f\uff08\u4ece\u5927\u5230\u5c0f\u6392\u5e8f\uff09\uff0c'[a-z]+&#8217;\u5339\u914d\u4efb\u610f\u957f\u5ea6\u7684\u7531\u8fd9\u4e9b\u5b57\u7b26\u7ec4\u6210\u7684\u5b57\u7b26\u4e32<\/strong><br \/><strong>2.|\uff1a\u6216\u8005 \u4e00\u822c\u7528\u4e8e\u4e00\u4e9b\u5355\u8bcd\u7684\u6216\u8005 egrep &#8216;oldboy|Linux&#8217; re.txt<\/strong><br \/><strong>3.() \uff1a\u4e00\u822c\u8868\u793a\u4e00\u4e2a\u6574\u4f53\uff0c\u7528\u4e8e\u540e\u5411\u5f15\u7528 \uff08\u53cd\u5411\u5f15\u7528sed\uff09<\/strong><br \/><strong>#\u68c0\u67e5\u7cfb\u7edf\u4e2d\u662f\u5426\u5b58\u5728tree\uff0cvim\uff0csl<\/strong><br \/><strong>rpm -qa | grep -Ei &#8216;^(tree|vim|sl)&#8217;<\/strong><br \/><strong>4.{} \uff1a\u4f7f\u7528\u9891\u7387\u4e0d\u9ad8\uff0c\u53ef\u4ee5\u901a\u8fc7{}\u7cbe\u786e\u63a7\u5236\u51fa\u73b0\u6b21\u6570\uff0c\u7528\u4e8e\u5339\u914d\u8fde\u7eed\u51fa\u73b0\u7684\u8303\u56f4<\/strong><br \/><strong>egrep &#8216;0{1,3}&#8217; re.txt<\/strong><br \/><strong>a{n,m} \u524d\u4e00\u4e2a\u5b57\u7b26\u8fde\u7eed\u51fa\u73b0\u81f3\u5c11n\u6b21\uff0c\u6700\u591am\u6b21<\/strong><br \/><strong>a{n} \u524d\u4e00\u4e2a\u5b57\u7b26\u8fde\u7eed\u51fa\u73b0n\u6b21 \u5339\u914d\u56fa\u5b9a\u7684\u6b21\u6570<\/strong><br \/><strong>a{n,} \u524d\u4e00\u4e2a\u5b57\u7b26\u8fde\u7eed\u51fa\u73b0\u81f3\u5c11n\u6b21\uff08\u51e0\u4e4e\u7528\u4e0d\u5230\uff09<\/strong><br \/><strong>a{,m} \u524d\u4e00\u4e2a\u5b57\u7b26\u8fde\u7eed\u51fa\u73b0\u6700\u591am\u6b21 \uff08\u51e0\u4e4e\u7528\u4e0d\u5230\uff09<\/strong><br \/><strong>5.? \uff1a\u524d\u4e00\u4e2a\u5b57\u7b26\u51fa\u73b00\u6b21\u62161\u6b21\uff0c\u4e00\u822c\u7528\u4e8e\u5339\u914d\u7684\u5185\u5bb9\u53ef\u80fd\u6709\uff08\u51fa\u73b01\u6b21\uff09\u6216\u8005\u6ca1\u6709\u51fa\u73b0\uff08\u51fa\u73b00\u6b21\uff09<\/strong><br \/><strong>egrep &#8216;g?od&#8217; good.txt #\u7ed3\u679c\u53ea\u6709gd\u548cgod<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-21737e0 e-flex e-con-boxed e-con e-parent\" data-id=\"21737e0\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>grep\/find \u5e38\u7528\u53c2\u6570 grep-n \u663e\u793a\u884c\u53f7-v \u6392\u9664\uff0c\u53d6\u53cd-i \u8fc7\u6ee4\u7684\u65f6\u5019\u5ffd\u7565\u5927\u5c0f\u5199-E \u6548\u679c\u7b49\u540c\u4e8e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[12],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-vxhs888p","tag-study-note"],"_links":{"self":[{"href":"https:\/\/linuxjk.cn\/index.php?rest_route=\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxjk.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxjk.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxjk.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxjk.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=57"}],"version-history":[{"count":34,"href":"https:\/\/linuxjk.cn\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":569,"href":"https:\/\/linuxjk.cn\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions\/569"}],"wp:attachment":[{"href":"https:\/\/linuxjk.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxjk.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxjk.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}