Hallo All,
I have a small awk script rewriting a file. I would love to remove all empty lines. If I "cat -A filename" it looks like this:
some text
some more text
$
$
$
yet more text
$
How do I remove the empty lines?
I tried:
/^$/ ; $0 = ""
print; next }
...in my script but that didn't work
I have a small awk script rewriting a file. I would love to remove all empty lines. If I "cat -A filename" it looks like this:
some text
some more text
$
$
$
yet more text
$
How do I remove the empty lines?
I tried:
/^$/ ; $0 = ""
print; next }
...in my script but that didn't work