{"id":411,"date":"2013-11-05T03:21:10","date_gmt":"2013-11-05T03:21:10","guid":{"rendered":"http:\/\/www.selinuxplus.com\/?p=411"},"modified":"2013-11-05T03:22:49","modified_gmt":"2013-11-05T03:22:49","slug":"%e4%b8%80%e4%b8%aa%e6%95%b0%e6%8d%ae%e7%9a%84%e7%bb%9f%e8%ae%a1%e6%8e%92%e5%ba%8f","status":"publish","type":"post","link":"http:\/\/www.selinuxplus.com\/?p=411","title":{"rendered":"\u4e00\u4e2a\u6570\u636e\u7684\u7edf\u8ba1\u6392\u5e8f"},"content":{"rendered":"<p>\u6392\u5e8f\u4e00\u4e2a\u7f51\u7ad9\u7684\u8bbf\u95ee\u7edf\u8ba1\uff0c\u5e76\u6309\u7167\u57df\u540d\u8fdb\u884c\u5012\u5e8f\u6392\u5217\uff0c\u5982\uff1a <\/p>\n<pre class=\"lang:default decode:true \" >\r\nhttp:\/\/www.selinux.com\/a.html\r\nhttp:\/\/bbs.selinux.com\/b.html\r\nhttp:\/\/nj.selinux.com\/a.html\r\nhttp:\/\/www.selinux.com\/ab.html\r\nhttp:\/\/sh.selinux.com\/a.html\r\nhttp:\/\/bbs.selinux.com\/a.html\r\nhttp:\/\/www.selinux.com\/a.html\r\nhttp:\/\/www.selinux.com\/a.html\r\nhttp:\/\/sh.selinux.com\/a.html\r\nhttp:\/\/www.selinux.com\/123.html\r\nhttp:\/\/book.bbs.selinux.com\/a.html\r\nhttp:\/\/www.selinux.com\/b.html\r\n<\/pre>\n<p>\u521a\u7a0d\u5fae\u5199\u4e86\u7b80\u5355\u7684\u6392\u5e8f\u65b9\u6cd5\uff1a <\/p>\n<pre class=\"lang:default decode:true \" >\r\n[root@fc16 ~]# time awk  -F selinux '$1 ~\/^http:\\\/\\\/\/ {print $1}' test_word.txt  |awk -F \"\/\/\" '{print $2}'|sort|uniq -c |sort -rn|awk '{print $1\" http:\/\/\"$2\"selinux.com\"}'\r\n6 http:\/\/www.selinux.com\r\n2 http:\/\/sh.selinux.com\r\n2 http:\/\/bbs.selinux.com\r\n1 http:\/\/nj.selinux.com\r\n1 http:\/\/book.bbs.selinux.com\r\n\r\nreal\t0m0.006s\r\nuser\t0m0.001s\r\nsys\t0m0.010s\r\n\r\n<\/pre>\n<p>\u53c8\u611f\u89c9\u8fd9\u6837\u592a\u9ebb\u70e6\uff0c\u6539\u4e86\u6539\uff1a<\/p>\n<pre class=\"lang:default decode:true \" >\r\n[root@fc16 ~]# time awk  -F '\/' '$1 ~\/^http\/ {print $(NF-1)}' test_word.txt |sort |uniq -c|sort -rn\r\n      6 www.selinux.com\r\n      2 sh.selinux.com\r\n      2 bbs.selinux.com\r\n      1 nj.selinux.com\r\n      1 book.bbs.selinux.com\r\n\r\nreal\t0m0.007s\r\nuser\t0m0.001s\r\nsys\t0m0.010s\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6392\u5e8f\u4e00\u4e2a\u7f51\u7ad9\u7684\u8bbf\u95ee\u7edf\u8ba1\uff0c\u5e76\u6309\u7167\u57df\u540d\u8fdb\u884c\u5012\u5e8f\u6392\u5217\uff0c\u5982&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts\/411"}],"collection":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=411"}],"version-history":[{"count":3,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts\/411\/revisions"}],"predecessor-version":[{"id":414,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts\/411\/revisions\/414"}],"wp:attachment":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=411"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}