Delete empty and whitespace-only lines
Submitted by Saturday, 30 July, 2005 - 13:24
on
Moin,
I want to clear my edited text for all lines which have
empty content e.g. white spaces or nothing and so on.
I can use find and replace to find an string and replace it,
but I havenot an idea to use an macro which will delete
these line if found the given string.
What is my fault?
e.g. in sed '/^\ .*$/d' will find all empty lines and
lines with spaces only and delete them.
MfG...
Pierre Berhardt
I want to clear my edited text for all lines which have
empty content e.g. white spaces or nothing and so on.
I can use find and replace to find an string and replace it,
but I havenot an idea to use an macro which will delete
these line if found the given string.
What is my fault?
e.g. in sed '/^\ .*$/d' will find all empty lines and
lines with spaces only and delete them.
MfG...
Pierre Berhardt