How Do You Remove Multiple Lines in Linux?
Contents How Do You Delete Multiple Lines in Unix? Delete Lines Other Than the First Line or Header Line Use the Negation (!) Operator with D Option in Sed...
Contents
How do you delete multiple lines in Unix?
Delete lines other than the first line or header line
Use the negation (!) operator with d option in sed command. The following sed command removes all the lines except the header line.
Must Read
How do you delete multiple lines in Ubuntu?
10 Answers
- use CTRL + Shift + 6 to mark the beginning of your block.
- move cursor with arrow keys to end of your block, the text will be highlighted.
- use CTRL + K to cut/delete block.