文件#1:
I have foofoo
You have foobar
she/he has foo
Run Code Online (Sandbox Code Playgroud)
文件#2:
bar
foobar
barfoo
Run Code Online (Sandbox Code Playgroud)
最终的:
I have foofoobar
You have foobarfoobar
she/he has foobarfoo
Run Code Online (Sandbox Code Playgroud)
cuo*_*glm 14
使用 POSIX粘贴:
paste -d'\0' file1 file2 > new_file
Run Code Online (Sandbox Code Playgroud)
使用来自 GNU coreutils 的粘贴,您可以使用-d ''.