{"id":892,"date":"2019-04-18T17:33:10","date_gmt":"2019-04-18T09:33:10","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=892"},"modified":"2022-05-10T03:13:32","modified_gmt":"2022-05-09T19:13:32","slug":"wc","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/wc","title":{"rendered":"wc\u547d\u4ee4 – \u7edf\u8ba1\u6587\u4ef6\u7684\u5b57\u8282\u6570\u3001\u5355\u8bcd\u6570\u3001\u884c\u6570"},"content":{"rendered":"\n
wc\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cWord count\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u7edf\u8ba1\u6587\u4ef6\u7684\u5b57\u8282\u6570\u3001\u5355\u8bcd\u6570\u3001\u884c\u6570\u7b49\u4fe1\u606f\uff0c\u5e76\u5c06\u7edf\u8ba1\u7ed3\u679c\u8f93\u51fa\u5230\u7ec8\u7aef\u754c\u9762\u3002\u5229\u7528wc\u547d\u4ee4\u53ef\u4ee5\u5f88\u5feb\u7684\u8ba1\u7b97\u51fa\u51c6\u786e\u7684\u5355\u8bcd\u6570\u53ca\u884c\u6570\uff0c\u8bc4\u4f30\u51fa\u6587\u672c\u7684\u5185\u5bb9\u957f\u5ea6\uff0c\u8981\u60f3\u4e86\u89e3\u4e00\u4e2a\u6587\u4ef6\uff0c\u4e0d\u59a8\u5148wc\u4e00\u4e0b\u5427~<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>wc [\u53c2\u6570] \u6587\u4ef6<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a\ufeff<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u7edf\u8ba1\u6307\u5b9a\u6587\u4ef6\u7684\u5355\u8bcd\u6570\u91cf\uff1a<\/p>\n\n\n\n \u7edf\u8ba1\u6307\u5b9a\u6587\u4ef6\u7684\u5b57\u8282\u6570\u91cf\uff1a<\/p>\n\n\n\n \u7edf\u8ba1\u6307\u5b9a\u6587\u4ef6\u7684\u5b57\u7b26\u6570\u91cf\uff1a<\/p>\n\n\n\n \u7edf\u8ba1\u6307\u5b9a\u6587\u4ef6\u7684\u603b\u884c\u6570\uff1a<\/p>\n\n\n\n wc\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cWord count\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u7edf\u8ba1\u6587\u4ef6\u7684\u5b57\u8282\u6570\u3001\u5355\u8bcd\u6570\u3001\u884c\u6570\u7b49\u4fe1\u606f\uff0c\u5e76\u5c06\u7edf […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/892"}],"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=892"}],"version-history":[{"count":14,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/892\/revisions"}],"predecessor-version":[{"id":9442,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/892\/revisions\/9442"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-w<\/td> \u7edf\u8ba1\u5355\u8bcd\u6570<\/td><\/tr> -c<\/td> \u7edf\u8ba1\u5b57\u8282\u6570<\/td><\/tr> -l<\/td> \u7edf\u8ba1\u884c\u6570<\/td><\/tr> -m<\/td> \u7edf\u8ba1\u5b57\u7b26\u6570<\/td><\/tr> -L<\/td> \u663e\u793a\u6700\u957f\u884c\u7684\u957f\u5ea6<\/td><\/tr> --help <\/td> \u663e\u793a\u5e2e\u52a9\u4fe1\u606f<\/td><\/tr> --version<\/td> \u663e\u793a\u7248\u672c\u4fe1\u606f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# wc -w anaconda-ks.cfg <\/strong>\r\n117 anaconda-ks.cfg\r<\/pre>\n\n\n\n
[root@linuxcool ~]# wc -c anaconda-ks.cfg <\/strong>\n1256 anaconda-ks.cfg <\/pre>\n\n\n\n
[root@linuxcool ~]# wc -m anaconda-ks.cfg <\/strong>\n1256 anaconda-ks.cfg<\/pre>\n\n\n\n
[root@linuxcool ~]# wc -l anaconda-ks.cfg <\/strong>\n43 anaconda-ks.cfg<\/pre>\n","protected":false},"excerpt":{"rendered":"