{"id":8334,"date":"2020-07-28T21:12:39","date_gmt":"2020-07-28T13:12:39","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8334"},"modified":"2020-07-28T21:12:40","modified_gmt":"2020-07-28T13:12:40","slug":"msgcat","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/msgcat","title":{"rendered":"msgcat\u547d\u4ee4 – \u5408\u5e76\u591a\u4e2a\u90ae\u4ef6\u76ee\u5f55"},"content":{"rendered":"\n

msgcat\u547d\u4ee4\u5408\u5e76\u591a\u4e2a\u90ae\u4ef6\u76ee\u5f55\u3002msgcat\u7a0b\u5e8f\u8fde\u63a5\u5e76\u5408\u5e76\u6307\u5b9a\u7684PO\u6587\u4ef6\u3002\u5b83\u627e\u5230\u4e24\u4e2a\u6216\u591a\u4e2a\u6307\u5b9a\u7684PO\u6587\u4ef6\u5171\u6709\u7684\u6d88\u606f\u3002\u901a\u8fc7\u4f7f\u7528 -- \u591a\u9009\u9879\uff0c\u53ef\u4ee5\u5728\u6253\u5370\u6d88\u606f\u4e4b\u524d\u8bf7\u6c42\u66f4\u5927\u7684\u901a\u7528\u6027\u3002\u76f8\u53cd\uff0c\u5728\u6253\u5370\u6d88\u606f \uff08\u5373’-less-than = 2’\u53ea\u6253\u5370\u552f\u4e00\u6d88\u606f\uff09\u4e4b\u524d\uff0c\u53ef\u4ee5\u4f7f\u7528-less-than \u9009\u9879\u6765\u6307\u5b9a\u8f83\u5c11\u7684\u901a\u7528\u6027\u3002 <\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>msgcat [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-f<\/td>\u4ece\u6587\u4ef6\u83b7\u53d6\u8f93\u5165\u6587\u4ef6\u5217\u8868<\/td><\/tr>
-D<\/td>\u5c06\u76ee\u5f55\u6dfb\u52a0\u5230\u5217\u8868\u4ee5\u8fdb\u884c\u8f93\u5165\u6587\u4ef6\u641c\u7d22<\/td><\/tr>
-o<\/td>\u5c06\u8f93\u51fa\u5199\u5165\u6307\u5b9a\u6587\u4ef6<\/td><\/tr>
--use-first<\/td>\u5bf9\u6bcf\u6761\u6d88\u606f\u4f7f\u7528\u7b2c\u4e00\u4e2a\u53ef\u7528\u7684\u7ffb\u8bd1\uff0c\u4e0d\u8981\u5408\u5e76<\/td><\/tr>
-E<\/td>\u5728\u8f93\u51fa\u4e2d\u4f7f\u7528C\u8f6c\u4e49\u7b26\uff0c\u6ca1\u6709\u6269\u5c55\u5b57\u7b26<\/td><\/tr>
-s<\/td>\u751f\u6210\u6392\u5e8f\u8f93\u51fa<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u4ece\u6587\u4ef6\u83b7\u53d6\u8f93\u5165\u6587\u4ef6\u5217\u8868\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# msgcat -f linuxcool.txt<\/pre>\n\n\n\n

\u5c06\u8f93\u51fa\u5199\u5165\u6307\u5b9a\u6587\u4ef6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# msgcat -o linuxcool.txt<\/pre>\n\n\n\n

\u751f\u6210\u6392\u5e8f\u8f93\u51fa\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# msgcat -s<\/pre>\n","protected":false},"excerpt":{"rendered":"

msgcat\u547d\u4ee4\u5408\u5e76\u591a\u4e2a\u90ae\u4ef6\u76ee\u5f55\u3002msgcat\u7a0b\u5e8f\u8fde\u63a5\u5e76\u5408\u5e76\u6307\u5b9a\u7684PO\u6587\u4ef6\u3002\u5b83\u627e\u5230\u4e24\u4e2a\u6216\u591a\u4e2a\u6307\u5b9a\u7684PO\u6587\u4ef6\u5171\u6709 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8334"}],"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=8334"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8334\/revisions"}],"predecessor-version":[{"id":8460,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8334\/revisions\/8460"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}