How Do I Remove a Few Lines in Unix?
Contents How Do You Remove Multiple Lines in Unix? Deleting Multiple Lines Press the Esc Key to Go to Normal Mode. Place the Cursor on the First Line You Want...
Contents
How do you remove multiple lines in Unix?
Deleting Multiple Lines
- Press the Esc key to go to normal mode.
- Place the cursor on the first line you want to delete.
- Type 5dd and hit Enter to delete the next five lines.
Must Read
How do I remove the first 10 lines in Unix?
Remove first N lines of a file in place in unix command line
- Both sed -i and gawk v4.1 -i -inplace options are basically creating temp file behind the scenes. IMO sed should be the faster than tail and awk . – …
- tail is multiple times faster for this task, than sed or awk . (