{"id":1308,"date":"2019-04-28T23:44:13","date_gmt":"2019-04-28T15:44:13","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=1308"},"modified":"2019-05-01T15:24:43","modified_gmt":"2019-05-01T07:24:43","slug":"paste","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/paste","title":{"rendered":"paste\u547d\u4ee4 – \u5408\u5e76\u4e24\u4e2a\u6587\u4ef6"},"content":{"rendered":"\n
paste\u547d\u4ee4\u4f1a\u628a\u6bcf\u4e2a\u6587\u4ef6\u4ee5\u5217\u5bf9\u5217\u7684\u65b9\u5f0f\uff0c\u4e00\u5217\u5217\u5730\u52a0\u4ee5\u5408\u5e76 \uff0c\u4ed6\u5c31\u662f\u76f8\u5f53\u4e8e\u628a\u4e24\u4e2a\u4e0d\u540c\u7684\u6587\u4ef6\u5185\u5bb9\u7c98\u8d34\u5728\u4e00\u8d77\uff0c\u5f62\u6210\u65b0\u7684\u6587\u4ef6\u3002<\/p>\n\n\n\n
\u6ce8\u610f\uff1apaste\u9ed8\u8ba4\u7c98\u8d34\u65b9\u5f0f\u4ee5\u5217\u7684\u65b9\u5f0f\u7c98\u8d34\uff0c\u4f46\u662f\u5e76\u4e0d\u662f\u4e0d\u80fd\u4ee5\u884c\u7684\u65b9\u5f0f\u7c98\u8d34\uff0c\u52a0\u4e0a-s\u9009\u9879\u5c31\u53ef\u4ee5\u884c\u65b9\u5f0f\u7c98\u8d34\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong> paste [\u53c2\u6570] [\u6587\u4ef61] [\u6587\u4ef62]<\/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 \u5c06file_2\u548cfile_2\u7c98\u8d34\u6210\u4e00\u4e2a\u65b0\u7684\u6587\u4ef6\uff1a<\/p>\n\n\n\n \u8bbe\u7f6e\u57df\u5206\u9694\u7b26\u4e3a\uff1a\u7c98\u8d34\u6210\u65b0\u7684\u6587\u4ef6\uff1a<\/p>\n\n\n\n \u5c06\u6bcf\u4e2a\u6587\u4ef6\u7c98\u8d34\u6210\u4e00\u884c\uff1a<\/p>\n\n\n\n \u4ece\u6807\u51c6\u8f93\u5165\u4e2d\u8bfb\u53d6\u6570\u636e\uff0c\u6bcf\u884c\u663e\u793a5\u4e2a\u6587\u4ef6\u540d\uff1a<\/p>\n\n\n\n paste\u547d\u4ee4\u4f1a\u628a\u6bcf\u4e2a\u6587\u4ef6\u4ee5\u5217\u5bf9\u5217\u7684\u65b9\u5f0f\uff0c\u4e00\u5217\u5217\u5730\u52a0\u4ee5\u5408\u5e76 \uff0c\u4ed6\u5c31\u662f\u76f8\u5f53\u4e8e\u628a\u4e24\u4e2a\u4e0d\u540c\u7684\u6587\u4ef6\u5185\u5bb9\u7c98\u8d34\u5728\u4e00\u8d77\uff0c\u5f62\u6210 […]<\/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\/1308"}],"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=1308"}],"version-history":[{"count":8,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1308\/revisions"}],"predecessor-version":[{"id":1836,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1308\/revisions\/1836"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=1308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=1308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=1308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-d<\/td> \u9ed8\u8ba4\u57df\u7684\u5206\u9694\u7b26\u662f\u7a7a\u683c\u6216tab\u952e\uff0c\u8bbe\u7f6e\u65b0\u7684\u57df\u5206\u9694\u7b26<\/td><\/tr> -s<\/td> \u5c06\u6bcf\u4e2a\u6587\u4ef6\u7c98\u8d34\u6210\u4e00\u884c<\/td><\/tr> --<\/td> \u4ece\u6807\u51c6\u8f93\u5165\u4e2d\u8bfb\u53d6\u6570\u636e<\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# cat file_1
aaa
bbb
ccc
ddd
eee
[root@linuxcool ~]# cat file_2
AAA
BBB
CCC
DDD
EEE
[root@linuxcool ~]# paste file_1 file_2
aaa AAA
bbb BBB
ccc CCC
ddd DDD
eee EEE<\/pre>\n\n\n\n[root@linuxcool ~]# paste -d: file_1 file_2
aaa:AAA
bbb:BBB
ccc:CCC
ddd:DDD
eee:EEE
<\/pre>\n\n\n\n[root@linuxcool ~]# cat file_1
aaa
bbb
ccc
ddd
eee
[root@linuxcool ~]# cat file_2
AAA
BBB
CCC
DDD
EEE
[root@linuxcool ~]# paste -d: -s file_1 file_2
aaa:bbb:ccc:ddd:eee
AAA:BBB:CCC:DDD:EEE<\/pre>\n\n\n\n[root@linuxcool ~]# ls | paste -d\" \" - - - - -
anaconda-ks.cfg dir_1 file1 file_1 file_1.db
file_2 file_3 file_4 file_5 file_6
file.db file_hobby_1 file_hobby.db file_hobby_sort.db file_sort.db
initial-setup-ks.cfg testfile <\/pre>\n","protected":false},"excerpt":{"rendered":"