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.
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.