Minimalistic Oracle contains a collection of practical examples from my encounters with Oracle technologies.
When relevant, I also write about other technologies, like Linux or PostgreSQL.
Many of the posts starts with "how to" since they derive directly from my own personal experience.
My goal is to provide simple examples, so that they can be easily adapted to other situations.
Thursday, October 9, 2025
How to delete all lines above and below the current line in the text editor vi
In vi (or vim), you can delete all lines above the current line with this one simple command:
:1,.−1d
To delete all rows above the current lin, press d (delete) followed by capital G (end of document):
No comments:
Post a Comment