> 11", which means copying the contents of file 22 to the end of file 11, ">> " symbol means appending."/> > 11", which means copying the contents of file 22 to the end of file 11, ">> " symbol means appending.">

Home >Operation and Maintenance >Linux Operation and Maintenance >How to copy the contents of one file to the end of another file in Linux

How to copy the contents of one file to the end of another file in Linux

王林
王林Original
2019-11-22 11:04:084012browse

How to copy the contents of one file to the end of another file in Linux

Problem description:

For example, the file content of 11 is:

hello

22’s file content is: world

Copy the content of file 22 to the end of file 11. The effect of file 11 is:

hello
world

Solution:

cat 22 >> 11

cat /dev/null > a.txt
linux tutorial

The above is the detailed content of How to copy the contents of one file to the end of another file in Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn