📜  连接两个 txt - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:30.910000             🧑  作者: Mango

代码示例1
#Using PowerShell
#Simply use the Get-Content and Set-Content cmdlets:

Get-Content inputFile1.txt, inputFile2.txt | Set-Content joinedFile.txt

#You can concatenate more than two files with this style, too.
#If the source files are named similarly, you can use wildcards:

Get-Content inputFile*.txt | Set-Content joinedFile.txt