• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Question about VI

jfall

Diamond Member
Say I have a text file with 10,000 lines, how can I remove let say 5,000 of those lines using VI? I need to be able to remove them by a line number range of some sort, because there is data at the top of the file that needs to be kept. For example, remove lines 50 to 5,000 or remove 5,000 lines BELOW the line that i'm currently on
 
You could have found the answer on Google in a 10th of the time it took to post the question.

Ndd or dNd delete N lines, beginning with the current line;
e.g., 5dd deletes 5 lines
 
Back
Top