Delete blank lines from a text file

notepadscripttext editing

I am trying to delete all the blank lines in a text file. Is there a quick way to do this?

What I have

line one

line two

What I want

line one
line two

I am using Notepad++, so a solution using Notepad++ is appreciated.

I have Cygwin too, so if nothing else, a script is fine.

Best Answer

Use the menu:

1) Select all text (Ctrl-A)

2) TextFX -> TextFX Edit -> Delete Blank Lines