|
Tips & Tricks, Questions regarding shell scripts, awk, perl, sed and much more.
Author |
Message |
debuser
|
 |
|
 |
Post subject: Remove empty lines in vi/vim | Posted: Mon Apr 26, 2010 11:06 am |
|
Joined: Thu Aug 06, 2009 2:48 am Posts: 105
|
Remove empty lines in vi/vim
Remove empty lines in files while editing them with vi or vim. Code: :%s/^[\ \t]*\n//g or Code: :%s/^\n//g Both worked for me. Make sure to test it for your environment.
|
|
|
|
|
|
|
Users browsing this forum: No registered users and 0 guests |
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
 News Site map SitemapIndex RSS Feed Channel list
|
|