Remove Top Line of Text File with PowerShell

后端 未结 10 1245
误落风尘
误落风尘 2020-12-01 11:51

I am trying to just remove the first line of about 5000 text files before importing them.

I am still very new to PowerShell so not sure what to search for or how to

10条回答
  •  粉色の甜心
    2020-12-01 12:29

    For smaller files you could use this:

    & C:\windows\system32\more +1 oldfile.csv > newfile.csv | out-null

    ... but it's not very effective at processing my example file of 16MB. It doesn't seem to terminate and release the lock on newfile.csv.

提交回复
热议问题