Windows DatabaseebooksStatistical Information

LLE10066 : Howto delete whitespaces in lines with sed in a file

Symptom:

You need to delete lines with whitespaces with sed

Cause:

none

Solution:

You can use the following sed command to do the job:

sed '/^ $/d' filename

Please note the space between ^ and $ in the sed command! 


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-2016 Lubby (V3.0.11 Jan 2016)
Sponsored by Keskon.
Datenschutzerklaerung - Privacy statement - Privacyverklaring