The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 10-11-2007
fedora fedora is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 94
thanks for the answer, but by doing this, you also ADD a empty line between
5 and 6, which before has no empty line between.

5
6

not
5

6



Quote:
Originally Posted by vgersh99 View Post
Code:
sed '/^$/d;G' myFile