When dealing with online questions, there is a need to add B .txt content to a.txt. When reading this question, my first question is the Field Code. Read B .txt content and write it to a.txt one by one. I will think of the solution to processing a m log file online yesterday. I use java code to write a regular expression to capture the required fields, the O & M personnel showed me how to use the awk command to extract the desired fields from the log.
Why don't I use the doscommand to merge two files? The labor cost of code writing is definitely higher than the cost of doscommand to solve the problem.
After Baidu, I found the solution I wanted:
Type chinese_user-11-4th data .txt> chinese_user-11-5th data .txt
The role of the type command is to output the content of the subsequent files to the screen. ">" This command is known to all users as a scatter, redirection, and stdout (screen data) to the following file. After using the doscommand, this problem will be solved in minutes!
New technologies bring more efficient productivity.
The doscommand merges the two text files.