Concatenate text files with Windows command line, dropping leading lines

前端 未结 12 931
心在旅途
心在旅途 2020-11-30 18:03

I need to concatenate some relatively large text files, and would prefer to do this via the command line. Unfortunately I only have Windows, and cannot install new software.

12条回答
  •  孤街浪徒
    2020-11-30 18:46

    In powershell:

    Get-Content file1.txt | Out-File out.txt
    Get-Content file2.txt | Select-Object -Skip 1 | Out-File -Append out.txt
    

提交回复
热议问题