{"id":4114,"date":"2019-07-27T22:20:36","date_gmt":"2019-07-27T14:20:36","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4114"},"modified":"2019-07-27T22:20:37","modified_gmt":"2019-07-27T14:20:37","slug":"tac","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/tac","title":{"rendered":"tac\u547d\u4ee4 – \u53cd\u5411\u5217\u793a\u6587\u4ef6\u5185\u5bb9"},"content":{"rendered":"\n

tac\u547d\u4ee4\u5c31\u662f\u5c06\u6587\u4ef6\u53cd\u5411\u8f93\u51fa\uff0c\u521a\u597d\u548ccat\u8f93\u51fa\u76f8\u53cd\u3002<\/p>\n\n\n\n

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

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-b <\/td>\u5728\u884c\u524d\u800c\u975e\u884c\u5c3e\u6dfb\u52a0\u5206\u9694\u6807\u5fd7 <\/td><\/tr>
-r <\/td>\u5c06\u5206\u9694\u6807\u5fd7\u89c6\u4f5c\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u89e3\u6790 <\/td><\/tr>
-s <\/td>\u4f7f\u7528\u6307\u5b9a\u5b57\u7b26\u4e32\u4ee3\u66ff\u6362\u884c\u4f5c\u4e3a\u5206\u9694\u6807\u5fd7 <\/td><\/tr>
--version <\/td>\u663e\u793a\u7248\u672c\u4fe1\u606f\u5e76\u9000\u51fa <\/td><\/tr>
--help <\/td>\u663e\u793a\u6b64\u5e2e\u52a9\u4fe1\u606f\u5e76\u9000\u51fa <\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u53cd\u5411\u5217\u51fatest.txt\u6587\u4ef6\u7684\u5185\u5bb9\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# cat test.txt \nhello world\nhello linuxcool\nhello linuxprobe\n[root@linuxcool ~]# tac test.txt \nhello linuxprobe\nhello linuxcool\nhello world<\/pre>\n","protected":false},"excerpt":{"rendered":"

tac\u547d\u4ee4\u5c31\u662f\u5c06\u6587\u4ef6\u53cd\u5411\u8f93\u51fa\uff0c\u521a\u597d\u548ccat\u8f93\u51fa\u76f8\u53cd\u3002 \u8bed\u6cd5\u683c\u5f0f\uff1atac [\u53c2\u6570] [\u6587\u4ef6] \u5e38\u7528\u53c2\u6570\uff1a -b […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4114"}],"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=4114"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4114\/revisions"}],"predecessor-version":[{"id":4436,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4114\/revisions\/4436"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}