James' blog
Programming and System Administration
Friday, May 29, 2009
Remove empty lines with vi
In ex mode:
:1,$s/^$//
Sometimes you need to do this too:
:1,$s/^\n//
May be able to do this:
:1,$s/^[\n$]//
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment