How to delete empty lines with vi?
Just type this in:
<esc>:g/^$/d
NOTE: This means that all the lines that just have a carriage return on them (NO Spaces), will be removed.
If you want to remove lines with empty spaces as well:
<esc>:g/^ *$/d
Reading Time: < 1 minute
How to delete empty lines with vi?
Just type this in:
<esc>:g/^$/d
NOTE: This means that all the lines that just have a carriage return on them (NO Spaces), will be removed.
If you want to remove lines with empty spaces as well:
<esc>:g/^ *$/d
How to delete empty lines with vi?
Just type this in:
<esc>:g/^$/d
NOTE: This means that all the lines that just have a carriage return on them (NO Spaces), will be removed.
If you want to remove lines with empty spaces as well:
<esc>:g/^ *$/d