{"id":3160,"date":"2019-06-14T11:55:07","date_gmt":"2019-06-14T03:55:07","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3160"},"modified":"2019-06-16T12:26:17","modified_gmt":"2019-06-16T04:26:17","slug":"fold","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/fold","title":{"rendered":"fold\u547d\u4ee4 – \u9650\u5236\u6587\u4ef6\u5217\u5bbd"},"content":{"rendered":"\n
fold\u547d\u4ee4\u4f1a\u4ece\u6307\u5b9a\u7684\u6587\u4ef6\u91cc\u8bfb\u53d6\u5185\u5bb9\uff0c\u5c06\u8d85\u8fc7\u9650\u5b9a\u5217\u5bbd\u7684\u5217\u52a0\u5165\u589e\u5217\u5b57\u7b26\u540e\uff0c\u8f93\u51fa\u5230\u6807\u51c6\u8f93\u51fa\u8bbe\u5907\u3002\u82e5\u4e0d\u6307\u5b9a\u4efb\u4f55\u6587\u4ef6\u540d\u79f0\uff0c\u6216\u662f\u6240\u7ed9\u4e88\u7684\u6587\u4ef6\u540d\u4e3a”-“\uff0c\u5219fold\u6307\u4ee4\u4f1a\u4ece\u6807\u51c6\u8f93\u5165\u8bbe\u5907\u8bfb\u53d6\u6570\u636e\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>fold [\u53c2\u6570] [\u6587\u4ef6] <\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u5c06\u4e00\u4e2a\u540d\u4e3atestfile \u7684\u6587\u4ef6\u7684\u884c\u6298\u53e0\u6210\u5bbd\u5ea6\u4e3a30\uff1a <\/p>\n\n\n\n \u4ee5\u7a7a\u683c\u5b57\u7b26\u4f5c\u4e3a\u6362\u5217\u70b9\uff1a<\/p>\n\n\n\n \u4ee5Byte\u4e3a\u5355\u4f4d\u8ba1\u7b97\u5217\u5bbd\uff0c\u800c\u975e\u91c7\u7528\u884c\u6570\u7f16\u53f7\u4e3a\u5355\u4f4d\uff1a<\/p>\n\n\n\n <\/p>\n","protected":false},"excerpt":{"rendered":" fold\u547d\u4ee4\u4f1a\u4ece\u6307\u5b9a\u7684\u6587\u4ef6\u91cc\u8bfb\u53d6\u5185\u5bb9\uff0c\u5c06\u8d85\u8fc7\u9650\u5b9a\u5217\u5bbd\u7684\u5217\u52a0\u5165\u589e\u5217\u5b57\u7b26\u540e\uff0c\u8f93\u51fa\u5230\u6807\u51c6\u8f93\u51fa\u8bbe\u5907\u3002\u82e5\u4e0d\u6307\u5b9a\u4efb\u4f55\u6587\u4ef6\u540d […]<\/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\/3160"}],"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=3160"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3160\/revisions"}],"predecessor-version":[{"id":3251,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3160\/revisions\/3251"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-b<\/td> \u4ee5Byte\u4e3a\u5355\u4f4d\u8ba1\u7b97\u5217\u5bbd\uff0c\u800c\u975e\u91c7\u7528\u884c\u6570\u7f16\u53f7\u4e3a\u5355\u4f4d <\/td><\/tr> -s<\/td> \u4ee5\u7a7a\u683c\u5b57\u7b26\u4f5c\u4e3a\u6362\u5217\u70b9 <\/td><\/tr> -w<\/td> \u8bbe\u7f6e\u6bcf\u5217\u7684\u6700\u5927\u884c\u6570 <\/td><\/tr> --help<\/td> \u5728\u7ebf\u5e2e\u52a9 <\/td><\/tr> --version<\/td> \u663e\u793a\u7248\u672c\u4fe1\u606f <\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# fold -w 30 file<\/pre>\n\n\n\n
[root@linuxcool ~]# fold -s file<\/pre>\n\n\n\n
[root@linuxcool ~]# fold -b file<\/pre>\n\n\n\n