The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 04-30-2008
Aejaz Aejaz is offline
Registered User
 

Join Date: Apr 2008
Posts: 18
How to delete empty lines

abc#
abc#this is a test
abc#this is a test to delete
abc#
xyz#
xyz#this is a test two
xyz#


In the above example '#' is common. How to do delete the emply lines. In specific to observe the output as:

abc#this is a test
abc#this is a test to delete
xyz#this is a test two
.
.
.
.
Reply With Quote
Forum Sponsor