I have one folder with thousands of .txt files. I am using a windows batch code to delete headers (line 1 to 82) from all .txt files inside that folder. The thing is this code works well for relatively small files, but now I need to use it on big files, and the code simply does not respond.
Can someone help me code on python what this windows batch does? Thank you in advance.
@echo off
for %%f in (*.txt) do (
more +82 "%%f" > "%TEMP%\%%f"
move /y "%TEMP%\%%f" "%%f" > nul
)
echo Done.