Any ideas on how to delete 16 million lines of a 24 GIG file from line 3 onwards. The traditional UNIX command line text tools, recompiled for windows, won’t handle the Unicode aspect of the file nor the file size. Maybe in stream mode> ‘cat’ fails around 4 GIG.
I have looked at the EmEditor. It has the ability to move to and bookmark specific lines but does not appear to have a command or macro to select all lines between two bookmarks. Paging down while holding down the shift key could take forever to select million of lines.
head
and the ones at the end withtail
.