Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这两个文件(file1.txt 和 file2.txt),我想要的输出是 output12.txt:
文件1.txt
1c 2c 1c 2c
文件2.txt
输出12.txt
1c 2c 1c 2c 1c 2c 1c 2c
我怎么能这样做?sed 管道切割?
如果您只想在 的 内容file2.txt之后附加 的内容file1.txt并且结果是另一个文件(名为output12.txt),那么您可以尝试以下操作:
file2.txt
file1.txt
output12.txt
cat file1.txt file2.txt > output12.txt