{"id":52,"date":"2011-03-25T16:39:59","date_gmt":"2011-03-25T08:39:59","guid":{"rendered":"http:\/\/blog.vscz.net\/?p=52"},"modified":"2014-07-28T00:19:06","modified_gmt":"2014-07-27T16:19:06","slug":"linux-wc-%e7%bb%9f%e8%ae%a1","status":"publish","type":"post","link":"https:\/\/bylang.cn\/?p=52","title":{"rendered":"Linux wc \u7edf\u8ba1"},"content":{"rendered":"<p>$ wc &#8211;help<br \/>\n\u7528\u6cd5\uff1awc [\u9009\u9879]&#8230; [\u6587\u4ef6]&#8230;<br \/>\nPrint newline, word, and byte counts for each FILE, and a total line if<br \/>\nmore than one FILE is specified.  With no FILE, or when FILE is -,<br \/>\nread standard input.<br \/>\n  -c, &#8211;bytes            print the byte counts<br \/>\n  -m, &#8211;chars            print the character counts<br \/>\n  -l, &#8211;lines            print the newline counts<br \/>\n  -L, &#8211;max-line-length  print the length of the longest line<br \/>\n  -w, &#8211;words            print the word counts<br \/>\n      &#8211;help     \u663e\u793a\u6b64\u5e2e\u52a9\u4fe1\u606f\u5e76\u9000\u51fa<br \/>\n      &#8211;version  \u8f93\u51fa\u7248\u672c\u4fe1\u606f\u5e76\u9000\u51fa<br \/>\n\u4f8b\u5982\uff1a<br \/>\n\u7edf\u8ba1tcp\u7684\u8fde\u63a5\u6570\uff1anetstat -an|grep tcp | wc -l<\/p>\n","protected":false},"excerpt":{"rendered":"<p>$ wc &#8211;help \u7528\u6cd5\uff1awc [\u9009\u9879]&#8230; [\u6587\u4ef6]&#8230; Print newline, word, and byte counts for each FILE, and a total line if more than one FILE is specified. With no FILE, or when FILE is -, read standard input. -c, &#8211;bytes print the byte counts -m, &#8211;chars print the character counts -l, &#8211;lines print the newline counts [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-52","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/bylang.cn\/index.php?rest_route=\/wp\/v2\/posts\/52","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bylang.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bylang.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bylang.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bylang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=52"}],"version-history":[{"count":1,"href":"https:\/\/bylang.cn\/index.php?rest_route=\/wp\/v2\/posts\/52\/revisions"}],"predecessor-version":[{"id":53,"href":"https:\/\/bylang.cn\/index.php?rest_route=\/wp\/v2\/posts\/52\/revisions\/53"}],"wp:attachment":[{"href":"https:\/\/bylang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=52"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bylang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=52"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bylang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}