PDA

View Full Version : Application for removing blank rows


valdet
12-29-2007, 07:15 AM
As title hints it, I would like some advice if there is an application that would remove blank rows from any type of text based file.

I've googled with many terms but couldnt find any.

Here is a rough example of how would it look:

Replace this block of text:





This is the first row

The second row is a bit longer



The third row is longer and more than two lines away
The fourth row is right here









The fifth row is awayyyy


with this:
This is the first row
The second row is a bit longer
The third row is longer and more than two lines away
The fourth row is just here
The fifth row is awayyyy

Thanks and best regards,
Val.

nexialys
12-29-2007, 11:50 AM
usually, we do a "search - replace" in GREP for this...

search double-return (\r\r) replace with (\r) ... most code editors can do it...

valdet
12-30-2007, 09:44 AM
Thanks nexialys,

I also discovered that Notepad++ has the same feature. I had it right in front of my nose, and didn't see it.

Regards,
Val.