Windows DatabaseebooksStatistical Information

LLE10067 : Howto delete empty lines with sed in a file

Symptom:

You need to delete empty lines and want to use sed

Cause:

none

Solution:

You can delete empty lines like this:

sed '/^$/d' filename

 


Disclaimer:

The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!
Copyright © 2004-2011 Lubby (V3.0.10 Aug 2011)
Sponsored by Keskon.
Statistical information by Google Analytics