{"id":457,"date":"2013-09-19T23:23:45","date_gmt":"2013-09-19T23:23:45","guid":{"rendered":"https:\/\/shan.info\/new\/grep-%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f%e9%80%89%e9%a1%b9%e8%a6%81%e8%ae%b0%e5%be%97%e8%bd%ac%e4%b9%89\/"},"modified":"2013-09-19T23:23:45","modified_gmt":"2013-09-19T23:23:45","slug":"grep-%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f%e9%80%89%e9%a1%b9%e8%a6%81%e8%ae%b0%e5%be%97%e8%bd%ac%e4%b9%89","status":"publish","type":"post","link":"https:\/\/shan.info\/new\/grep-%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f%e9%80%89%e9%a1%b9%e8%a6%81%e8%ae%b0%e5%be%97%e8%bd%ac%e4%b9%89\/","title":{"rendered":"grep \u6b63\u5219\u8868\u8fbe\u5f0f\u9009\u9879\u8981\u8bb0\u5f97\u8f6c\u4e49"},"content":{"rendered":"<p style=\"font-family: 'Microsoft Yahei', 'Helvetica Neue', 'Luxi Sans', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', STHeiti; font-size: 16px; line-height: 25px;\">\u4f7f\u7528\u8fc7\u7a0b\u4e2d\uff0c\u4f7f\u7528\u6700\u591a\u7684\u53c2\u6570\u5c31\u662f -v \uff0c\u4f46\u662f\u7528\u7740\u5e76\u4e0d\u723d\u3002<\/p>\n<p style=\"font-family: 'Microsoft Yahei', 'Helvetica Neue', 'Luxi Sans', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', STHeiti; font-size: 16px; line-height: 25px;\">\u6bd4\u5982\u8bf4\uff0c\u6211\u60f3\u67e5\u627e\u4e00\u4e2a\u5355\u8bcd\u201cUserService\u201d\uff0c\u4f46\u662f\u50cf\u201d*.svn\u201d \u8fd9\u79cd\u6587\u4ef6\u5c31\u4e0d\u7528\u663e\u793a\u4e86\uff0c\u6211\u8be5\u600e\u4e48\u505a\u5462\uff1f<\/p>\n<div class=\"codecolorer-container bash dawn\" style=\"font-family: 'Microsoft Yahei', 'Helvetica Neue', 'Luxi Sans', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', STHeiti; font-size: 16px; line-height: 25px; overflow: auto; width: 600px; white-space: nowrap;\">\n<div class=\"bash codecolorer\"><span class=\"kw2\"><span style=\"color: #794938;\">grep<\/span><\/span>&nbsp;<span class=\"re5\">-r<\/span>&nbsp;<span class=\"st0\"><span style=\"color: #0b6125;\">&#8220;UserService&#8221;<\/span><\/span>&nbsp;.<span class=\"sy0\">\/<\/span>&nbsp;<span class=\"sy0\">|<\/span>&nbsp;<span class=\"kw2\"><span style=\"color: #794938;\">grep<\/span><\/span>&nbsp;<span class=\"re5\">-v<\/span>&nbsp;<span class=\"st0\"><span style=\"color: #0b6125;\">&#8220;svn&#8221;<\/span><\/span><\/div>\n<\/div>\n<p style=\"font-family: 'Microsoft Yahei', 'Helvetica Neue', 'Luxi Sans', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', STHeiti; font-size: 16px; line-height: 25px;\">\u4f46\u662f\uff0c\u5982\u679c\u7c7b\u4f3c\u4e8e\u542b\u6709\u201dtest\u3001auto_load\u201d\u4e4b\u7c7b\u7684\u6587\u4ef6\u6211\u4e5f\u4e0d\u663e\u793a\uff0c\u600e\u4e48\u505a\u5462\uff1f\u6211\u4e4b\u524d\u7684\u505a\u6cd5\u662f\uff1a<\/p>\n<div class=\"codecolorer-container bash dawn\" style=\"font-family: 'Microsoft Yahei', 'Helvetica Neue', 'Luxi Sans', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', STHeiti; font-size: 16px; line-height: 25px; overflow: auto; width: 600px; white-space: nowrap;\">\n<div class=\"bash codecolorer\"><span class=\"kw2\"><span style=\"color: #794938;\">grep<\/span><\/span>&nbsp;<span class=\"re5\">-r<\/span>&nbsp;<span class=\"st0\"><span style=\"color: #0b6125;\">&#8220;UserService&#8221;<\/span><\/span>&nbsp;.<span class=\"sy0\">\/<\/span>&nbsp;<span class=\"sy0\">|<\/span>&nbsp;<span class=\"kw2\"><span style=\"color: #794938;\">grep<\/span><\/span>&nbsp;<span class=\"re5\">-v<\/span>&nbsp;<span class=\"st0\"><span style=\"color: #0b6125;\">&#8220;svn&#8221;<\/span><\/span>&nbsp;<span class=\"sy0\">|<\/span>&nbsp;<span class=\"kw2\"><span style=\"color: #794938;\">grep<\/span><\/span>&nbsp;<span class=\"re5\">-v<\/span>&nbsp;<span class=\"st0\"><span style=\"color: #0b6125;\">&#8220;test&#8221;<\/span><\/span>&nbsp;<span class=\"sy0\">|<\/span>&nbsp;<span class=\"kw2\"><span style=\"color: #794938;\">grep<\/span><\/span>&nbsp;<span class=\"re5\">-v<\/span>&nbsp;<span class=\"st0\"><span style=\"color: #0b6125;\">&#8220;auto_load&#8221;<\/span><\/span><\/div>\n<\/div>\n<p style=\"font-family: 'Microsoft Yahei', 'Helvetica Neue', 'Luxi Sans', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', STHeiti; font-size: 16px; line-height: 25px;\">\u547d\u4ee4\u5f88\u957f\uff0c\u800c\u4e14\u9ebb\u70e6\uff0c\u4e8e\u662f\u5c31\u60f3\uff0cgrep\u672c\u8eab\u662f\u6309\u7167\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5f53\u505a\u9009\u9879\u7684\uff0c\u90a3\u4e48\u6211\u662f\u4e0d\u662f\u53ef\u4ee5\u5229\u7528\u5230\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u201c\u6216|\u201d\u547d\u4ee4\uff1f<\/p>\n<div class=\"codecolorer-container bash dawn\" style=\"font-family: 'Microsoft Yahei', 'Helvetica Neue', 'Luxi Sans', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', STHeiti; font-size: 16px; line-height: 25px; overflow: auto; width: 600px; white-space: nowrap;\">\n<div class=\"bash codecolorer\"><span class=\"kw2\"><span style=\"color: #794938;\">grep<\/span><\/span>&nbsp;<span class=\"re5\">-r<\/span>&nbsp;<span class=\"st0\"><span style=\"color: #0b6125;\">&#8220;UserService&#8221;<\/span><\/span>&nbsp;.<span class=\"sy0\">\/<\/span>&nbsp;<span class=\"sy0\">|<\/span>&nbsp;<span class=\"kw2\"><span style=\"color: #794938;\">grep<\/span><\/span>&nbsp;<span class=\"re5\">-v<\/span>&nbsp;<span class=\"st0\"><span style=\"color: #0b6125;\">&#8220;svn|test|auto_load&#8221;<\/span><\/span><\/div>\n<\/div>\n<p style=\"font-family: 'Microsoft Yahei', 'Helvetica Neue', 'Luxi Sans', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', STHeiti; font-size: 16px; line-height: 25px;\">\u5f88\u663e\u793a\uff0c\u6267\u884c\u7ed3\u679c\u663e\u793a\u4e0a\u9762\u7684\u547d\u4ee4\u4e0d\u7b26\u5408\u6211\u7684\u9700\u6c42\uff0c\u4e8e\u662f\u82e6\u601d\u4e0d\u5f97\u5176\u89e3\u3002\u539f\u6765\uff0c\u5728\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u9009\u9879\u65f6\uff0c\u8981\u8bb0\u5f97\u5c06\u201d|\u201d\u8f6c\u4e49\u3002\u6700\u7ec8\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<div class=\"codecolorer-container bash dawn\" style=\"font-family: 'Microsoft Yahei', 'Helvetica Neue', 'Luxi Sans', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', STHeiti; font-size: 16px; line-height: 25px; overflow: auto; width: 600px; white-space: nowrap;\">\n<div class=\"bash codecolorer\"><span class=\"kw2\"><span style=\"color: #794938;\">grep<\/span><\/span>&nbsp;<span class=\"re5\">-r<\/span>&nbsp;<span class=\"st0\"><span style=\"color: #0b6125;\">&#8220;UserService&#8221;<\/span><\/span>&nbsp;.<span class=\"sy0\">\/<\/span>&nbsp;<span class=\"sy0\">|<\/span>&nbsp;<span class=\"kw2\"><span style=\"color: #794938;\">grep<\/span><\/span>&nbsp;<span class=\"re5\">-v<\/span>&nbsp;<span class=\"st0\"><span style=\"color: #0b6125;\">&#8220;svn|prj|test|auto_load&#8221;<\/span><\/span><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528\u8fc7\u7a0b\u4e2d\uff0c\u4f7f\u7528\u6700\u591a\u7684\u53c2\u6570\u5c31\u662f -v \uff0c\u4f46\u662f\u7528\u7740\u5e76\u4e0d\u723d\u3002 \u6bd4\u5982\u8bf4\uff0c\u6211\u60f3\u67e5\u627e\u4e00\u4e2a\u5355\u8bcd\u201cUserService\u201d\uff0c\u4f46\u662f\u50cf\u201d*.svn\u201d \u8fd9\u79cd\u6587\u4ef6\u5c31\u4e0d\u7528\u663e\u793a\u4e86\uff0c\u6211\u8be5\u600e\u4e48\u505a\u5462\uff1f grep&nbsp;-r&nbsp;&#8220;UserService&#8221;&nbsp;.\/&nbsp;|&nbsp;grep&nbsp;-v&nbsp;&#8220;svn&#8221; \u4f46\u662f\uff0c\u5982\u679c\u7c7b\u4f3c\u4e8e\u542b\u6709\u201dtest\u3001auto_load\u201d\u4e4b\u7c7b\u7684\u6587\u4ef6\u6211\u4e5f\u4e0d\u663e\u793a\uff0c\u600e\u4e48\u505a\u5462\uff1f\u6211\u4e4b\u524d\u7684\u505a\u6cd5\u662f\uff1a grep&nbsp;-r&nbsp;&#8220;UserService&#8221;&nbsp;.\/&nbsp;|&nbsp;grep&nbsp;-v&nbsp;&#8220;svn&#8221;&nbsp;|&nbsp;grep&nbsp;-v&nbsp;&#8220;test&#8221;&nbsp;|&nbsp;grep&nbsp;-v&nbsp;&#8220;auto_load&#8221; \u547d\u4ee4\u5f88\u957f\uff0c\u800c\u4e14\u9ebb\u70e6\uff0c\u4e8e\u662f\u5c31\u60f3\uff0cgrep\u672c\u8eab\u662f\u6309\u7167\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5f53\u505a\u9009\u9879\u7684\uff0c\u90a3\u4e48\u6211\u662f\u4e0d\u662f\u53ef\u4ee5\u5229\u7528\u5230\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u201c\u6216|\u201d\u547d\u4ee4\uff1f grep&nbsp;-r&nbsp;&#8220;UserService&#8221;&nbsp;.\/&nbsp;|&nbsp;grep&nbsp;-v&nbsp;&#8220;svn|test|auto_load&#8221; \u5f88\u663e\u793a\uff0c\u6267\u884c\u7ed3\u679c\u663e\u793a\u4e0a\u9762\u7684\u547d\u4ee4\u4e0d\u7b26\u5408\u6211\u7684\u9700\u6c42\uff0c\u4e8e\u662f\u82e6\u601d\u4e0d\u5f97\u5176\u89e3\u3002\u539f\u6765\uff0c\u5728\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u9009\u9879\u65f6\uff0c\u8981\u8bb0\u5f97\u5c06\u201d|\u201d\u8f6c\u4e49\u3002\u6700\u7ec8\u547d\u4ee4\u5982\u4e0b\uff1a grep&nbsp;-r&nbsp;&#8220;UserService&#8221;&nbsp;.\/&nbsp;|&nbsp;grep&nbsp;-v&nbsp;&#8220;svn|prj|test|auto_load&#8221;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-457","post","type-post","status-publish","format-standard","hentry","category-centos-6"],"_links":{"self":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/457","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/comments?post=457"}],"version-history":[{"count":0,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/457\/revisions"}],"wp:attachment":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/media?parent=457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/categories?post=457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/tags?post=457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}