如何从 shell 将一个文件附加到 Linux 中的另一个文件?文件、shell、Linux

由网友(薄荷微凉少年时)分享简介:我有两个文件:file1 和 file2.如何将 file2 的内容附加到 file1 以便 file1 的内容保持进程?I have two files: file1 and file2. How do I append the contents of file2 to file1 so that contents...

我有两个文件:file1file2.如何将 file2 的内容附加到 file1 以便 file1 的内容保持进程?

I have two files: file1 and file2. How do I append the contents of file2 to file1 so that contents of file1 persist the process?

推荐答案

使用 bash 内置重定向 (tldp):

cat file2 >> file1
阅读全文

相关推荐

最新文章