This powershell code deletes the first 4 lines in the file.
(gc "old.zip" | select -Skip 4) | sc "new.zip" But old.zip has the end of lines Unix (LF)
And this code also converts the end of file lines in Windows (CR LF)
How to delete the first 4 lines without converting?
Due to the presence of a lot of "strange" characters in .zip, other ways to delete the first n lines in the .zip file do not work. For example more +4 "old.zip" >"new.zip" in cmd does not work, etc.
Through powershell, it is somehow removed but also not without problems.
Do you know other ways to delete the first n lines in a .zip file?