linux - 如何从 shell 将一个文件 append 到 Linux 中的另一个文件?

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

最佳答案

使用 bash builtin redirection (tldp) :

cat file2 >> file1

https://stackoverflow.com/questions/4969641/

相关文章:

python - 在 Python 中以 YYYY-MM-DD 获取今天的日期?

linux - 如果任何命令返回非零值,则中止 shell 脚本

linux - 在 Linux 系统上快速创建大文件

python - 我应该在 Python 中使用 "camel case"还是下划线?

linux - chmod 777 到一个文件夹和所有内容

linux - 递归查找具有特定扩展名的文件

python - Python 和 IPython 有什么区别?

python - Python进程使用的总内存?

linux - 在shell中获取程序执行时间

python - 如何获取方法参数名称?