How Do You Remove Blank Rows in Unix?
Contents How Do I Delete Blank Lines in Vi? Deleting a Line Press the Esc Key to Go to Normal Mode. Place the Cursor on the Line You Want to Delete. Type Dd...
Contents
How do I delete blank lines in vi?
Deleting a Line
- Press the Esc key to go to normal mode.
- Place the cursor on the line you want to delete.
- Type dd and hit Enter to remove the line.
Must Read
How do I remove blank lines in grep?
‘^’ and ‘$’ are regex characters. So the command grep -v will print all the lines that do not match this pattern (No characters between ^ and $). This way, empty blank lines are eliminated. egrep already do regex, and the s is white space.